Преглед изворни кода

auto update script executed

Toby Chui пре 1 година
родитељ
комит
a51d8ca78e
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      mod/dynamicproxy/dpcore/dpcore.go

+ 3 - 3
mod/dynamicproxy/dpcore/dpcore.go

@@ -92,10 +92,10 @@ func NewDynamicProxyCore(target *url.URL, prepender string, ignoreTLSVerificatio
 	//Hack the default transporter to handle more connections
 	thisTransporter := http.DefaultTransport
 	thisTransporter.(*http.Transport).MaxIdleConns = 3000
-	thisTransporter.(*http.Transport).MaxIdleConnsPerHost = 3000
-	thisTransporter.(*http.Transport).IdleConnTimeout = 10 * time.Second
+	thisTransporter.(*http.Transport).MaxIdleConnsPerHost = 1000
+	thisTransporter.(*http.Transport).IdleConnTimeout = 60 * time.Second
 	thisTransporter.(*http.Transport).MaxConnsPerHost = 0
-	//thisTransporter.(*http.Transport).DisableCompression = true
+	thisTransporter.(*http.Transport).DisableCompression = true
 
 	if ignoreTLSVerification {
 		//Ignore TLS certificate validation error