From 8c1645a484bbf02ce1345764526fce0d23e636d6 Mon Sep 17 00:00:00 2001 From: Marie Katrine Ekeberg Date: Tue, 23 May 2023 08:09:59 +0200 Subject: [PATCH] Fix: Disable keep alives for helm https connections 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 edd5900f6e884..8fa3f6c0d24d8 100644 --- a/util/helm/client.go +++ b/util/helm/client.go @@ -304,6 +304,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) @@ -412,6 +413,7 @@ func (c *nativeHelmChart) GetTags(chart string, noCache bool) (*TagsList, error) client := &http.Client{Transport: &http.Transport{ Proxy: proxy.GetCallback(c.proxy), TLSClientConfig: tlsConf, + DisableKeepAlives: true, }} repo.Client = &auth.Client{ Client: client,