Skip to content

Commit

Permalink
fix: Disable keep alives for helm https connections (#13849)
Browse files Browse the repository at this point in the history
Signed-off-by: Marie Katrine Ekeberg <marie.ekeberg@tietoevry.com>
  • Loading branch information
mkekeberg authored Aug 23, 2023
1 parent 685040c commit ece9d1b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions util/helm/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit ece9d1b

Please sign in to comment.