Skip to content

Commit

Permalink
Merge pull request #5610 from yanfeng1992/fixbug-toomany-conn
Browse files Browse the repository at this point in the history
cluster proxy transport disable keepalive
  • Loading branch information
karmada-bot authored Nov 5, 2024
2 parents ac589d6 + 122ff3a commit a935aa1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/util/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,9 @@ func constructLocation(cluster *clusterapis.Cluster) (*url.URL, error) {
func createProxyTransport(cluster *clusterapis.Cluster, tlsConfig *tls.Config) (*http.Transport, error) {
var proxyDialerFn utilnet.DialFunc
trans := utilnet.SetTransportDefaults(&http.Transport{
DialContext: proxyDialerFn,
TLSClientConfig: tlsConfig,
DialContext: proxyDialerFn,
TLSClientConfig: tlsConfig,
DisableKeepAlives: true,
})

if proxyURL := cluster.Spec.ProxyURL; proxyURL != "" {
Expand Down

0 comments on commit a935aa1

Please sign in to comment.