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

auto update script executed

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

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

@@ -91,8 +91,8 @@ 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 = 10000
+	thisTransporter.(*http.Transport).MaxIdleConns = 1000
+	thisTransporter.(*http.Transport).MaxIdleConnsPerHost = 1000
 	thisTransporter.(*http.Transport).IdleConnTimeout = 30 * time.Second
 	thisTransporter.(*http.Transport).MaxConnsPerHost = 0
 	thisTransporter.(*http.Transport).DisableCompression = true