|
|
@ -116,11 +116,13 @@ func NewClient(serviceURL *xnet.URL, tlsConfig *tls.Config, timeout time.Duratio |
|
|
|
Transport: &http.Transport{ |
|
|
|
Transport: &http.Transport{ |
|
|
|
Proxy: http.ProxyFromEnvironment, |
|
|
|
Proxy: http.ProxyFromEnvironment, |
|
|
|
DialContext: newCustomDialContext(timeout), |
|
|
|
DialContext: newCustomDialContext(timeout), |
|
|
|
MaxIdleConns: 100, |
|
|
|
MaxIdleConnsPerHost: 4096, |
|
|
|
|
|
|
|
MaxIdleConns: 4096, |
|
|
|
IdleConnTimeout: 90 * time.Second, |
|
|
|
IdleConnTimeout: 90 * time.Second, |
|
|
|
TLSHandshakeTimeout: 10 * time.Second, |
|
|
|
TLSHandshakeTimeout: 10 * time.Second, |
|
|
|
ExpectContinueTimeout: 1 * time.Second, |
|
|
|
ExpectContinueTimeout: 1 * time.Second, |
|
|
|
TLSClientConfig: tlsConfig, |
|
|
|
TLSClientConfig: tlsConfig, |
|
|
|
|
|
|
|
DisableCompression: true, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
serviceURL: serviceURL, |
|
|
|
serviceURL: serviceURL, |
|
|
|