Skip to content

Commit

Permalink
fixes exec failure under clusterproxy tunneling (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
yue9944882 authored Nov 5, 2021
1 parent 2f5af88 commit 4d1ea02
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/apis/cluster/v1alpha1/clustergateway_proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,7 @@ func (p *proxyHandler) ServeHTTP(writer http.ResponseWriter, request *http.Reque
}
upgrading := utilnet.SetOldTransportDefaults(&http.Transport{
TLSClientConfig: tlsConfig,
DialContext: (&net.Dialer{
Timeout: 30 * time.Second,
KeepAlive: 0,
}).DialContext,
DialContext: cfg.Dial,
})
proxy.UpgradeTransport = apiproxy.NewUpgradeRequestRoundTripper(
upgrading,
Expand Down

0 comments on commit 4d1ea02

Please sign in to comment.