From ece9d1b9f7b7067f5f6aed789e92522ba87b4c71 Mon Sep 17 00:00:00 2001 From: Marie Katrine Ekeberg <78956208+mkekeberg@users.noreply.github.com> Date: Wed, 23 Aug 2023 22:13:06 +0200 Subject: [PATCH] fix: Disable keep alives for helm https connections (#13849) Signed-off-by: Marie Katrine Ekeberg --- util/helm/client.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/util/helm/client.go b/util/helm/client.go index 56c976a1977d9..f3187489c9fd0 100644 --- a/util/helm/client.go +++ b/util/helm/client.go @@ -303,6 +303,7 @@ func (c *nativeHelmChart) loadRepoIndex() ([]byte, error) { tr := &http.Transport{ Proxy: proxy.GetCallback(c.proxy), TLSClientConfig: tlsConf, + DisableKeepAlives: true, } client := http.Client{Transport: tr} resp, err := client.Do(req) @@ -471,6 +472,7 @@ func (c *nativeHelmChart) getTagsFromUrl(tagsURL string) ([]byte, string, error) tr := &http.Transport{ Proxy: proxy.GetCallback(c.proxy), TLSClientConfig: tlsConf, + DisableKeepAlives: true, } client := http.Client{Transport: tr} resp, err := client.Do(req)