|
@@ -92,11 +92,10 @@ func NewDynamicProxyCore(target *url.URL, prepender string, ignoreTLSVerificatio
|
|
|
//Hack the default transporter to handle more connections
|
|
|
thisTransporter := http.DefaultTransport
|
|
|
optimalConcurrentConnection := 32
|
|
|
- thisTransporter.(*http.Transport).MaxIdleConns = optimalConcurrentConnection + 3
|
|
|
+ thisTransporter.(*http.Transport).MaxIdleConns = optimalConcurrentConnection * 2
|
|
|
thisTransporter.(*http.Transport).MaxIdleConnsPerHost = optimalConcurrentConnection
|
|
|
thisTransporter.(*http.Transport).IdleConnTimeout = 30 * time.Second
|
|
|
- thisTransporter.(*http.Transport).MaxConnsPerHost = optimalConcurrentConnection + 3
|
|
|
-
|
|
|
+ thisTransporter.(*http.Transport).MaxConnsPerHost = optimalConcurrentConnection * 2
|
|
|
thisTransporter.(*http.Transport).DisableCompression = true
|
|
|
|
|
|
if ignoreTLSVerification {
|