mirror of
https://github.com/argoproj/argo-cd
synced 2026-05-24 09:50:08 +00:00
fix: Disable keep-alive for HTTPS connection to Git (#3531)
This commit is contained in:
parent
1b0421c3aa
commit
3df4850418
1 changed files with 3 additions and 0 deletions
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue