فهرست منبع

auto update script executed

Toby Chui 1 سال پیش
والد
کامیت
bac84135c6
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      mod/dynamicproxy/dpcore/dpcore.go

+ 2 - 2
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 = 10000
-	thisTransporter.(*http.Transport).MaxIdleConnsPerHost = 5000
+	thisTransporter.(*http.Transport).MaxIdleConnsPerHost = 10000
 	thisTransporter.(*http.Transport).IdleConnTimeout = 30 * time.Second
 	thisTransporter.(*http.Transport).MaxConnsPerHost = 0
-	//thisTransporter.(*http.Transport).DisableCompression = true
+	thisTransporter.(*http.Transport).DisableCompression = true
 
 	if ignoreTLSVerification {
 		//Ignore TLS certificate validation error