Fix transports/timeouts related regressions (#16427)

This commit is contained in:
Aditya Manthramurthy authored and GitHub committed 2023-01-18 10:06:38 +05:30
1 parent b4ef5ff294
commit 698862ec5d
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -608,7 +608,7 @@ func NewCustomHTTPProxyTransport() func() *http.Transport {
func NewHTTPTransportWithClientCerts(clientCert, clientKey string) *http.Transport {
s := xhttp.ConnSettings{
DNSCache: globalDNSCache,
DialTimeout: 1 * time.Minute,
DialTimeout: defaultDialTimeout,
RootCAs: globalRootCAs,
EnableHTTP2: false,
}
@@ -676,7 +676,7 @@ func NewRemoteTargetHTTPTransport() func() *http.Transport {
DialContext: newCustomDialContext(),
RootCAs: globalRootCAs,
EnableHTTP2: false,
}.NewCustomHTTPProxyTransport()
}.NewRemoteTargetHTTPTransport()
}
// Load the json (typically from disk file).