1
0
Эх сурвалжийг харах

auto update script executed

Toby Chui 1 жил өмнө
parent
commit
0ba0e56e18

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

@@ -92,8 +92,8 @@ func NewDynamicProxyCore(target *url.URL, prepender string, ignoreTLSVerificatio
 	//Hack the default transporter to handle more connections
 	thisTransporter := http.DefaultTransport
 	thisTransporter.(*http.Transport).MaxIdleConns = 0
-	thisTransporter.(*http.Transport).MaxIdleConnsPerHost = 10
-	thisTransporter.(*http.Transport).IdleConnTimeout = 60 * time.Second
+	thisTransporter.(*http.Transport).MaxIdleConnsPerHost = 5
+	thisTransporter.(*http.Transport).IdleConnTimeout = 10 * time.Second
 	thisTransporter.(*http.Transport).MaxConnsPerHost = 0
 	thisTransporter.(*http.Transport).DisableCompression = true