Răsfoiți Sursa

auto update script executed

Toby Chui 1 an în urmă
părinte
comite
683e2d0e63
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      mod/dynamicproxy/dpcore/dpcore.go

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

@@ -93,9 +93,9 @@ func NewDynamicProxyCore(target *url.URL, prepender string, ignoreTLSVerificatio
 	thisTransporter := http.DefaultTransport
 	thisTransporter.(*http.Transport).MaxIdleConns = 5000
 	thisTransporter.(*http.Transport).MaxIdleConnsPerHost = 5000
-	thisTransporter.(*http.Transport).IdleConnTimeout = 60 * time.Second
+	thisTransporter.(*http.Transport).IdleConnTimeout = 30 * time.Second
 	thisTransporter.(*http.Transport).MaxConnsPerHost = 100
-	thisTransporter.(*http.Transport).DisableCompression = true
+	//thisTransporter.(*http.Transport).DisableCompression = true
 
 	if ignoreTLSVerification {
 		//Ignore TLS certificate validation error