diff --git a/util/git/client.go b/util/git/client.go index a28f29325e..847319c979 100644 --- a/util/git/client.go +++ b/util/git/client.go @@ -147,6 +147,7 @@ func GetRepoHTTPClient(repoURL string, insecure bool, creds Creds) *http.Client InsecureSkipVerify: true, GetClientCertificate: clientCertFunc, }, + DisableKeepAlives: true, } } else { parsedURL, err := url.Parse(repoURL) @@ -164,6 +165,7 @@ func GetRepoHTTPClient(repoURL string, insecure bool, creds Creds) *http.Client RootCAs: certPool, GetClientCertificate: clientCertFunc, }, + DisableKeepAlives: true, } } else { // else no custom certificate stored. @@ -172,6 +174,7 @@ func GetRepoHTTPClient(repoURL string, insecure bool, creds Creds) *http.Client TLSClientConfig: &tls.Config{ GetClientCertificate: clientCertFunc, }, + DisableKeepAlives: true, } } }