From e5122fe436aaa1601a70e5e3eb7d883b2f68d549 Mon Sep 17 00:00:00 2001 From: jannfis Date: Fri, 1 May 2020 12:11:52 +0200 Subject: [PATCH] fix: Disable keep-alive for HTTPS connection to Git --- util/git/client.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util/git/client.go b/util/git/client.go index a28f29325e58b..847319c979826 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, } } }