Browse Source

auto update script executed

Toby Chui 1 year ago
parent
commit
55c9668c98
1 changed files with 2 additions and 3 deletions
  1. 2 3
      mod/dynamicproxy/dpcore/dpcore.go

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

@@ -92,11 +92,10 @@ func NewDynamicProxyCore(target *url.URL, prepender string, ignoreTLSVerificatio
 	//Hack the default transporter to handle more connections
 	thisTransporter := http.DefaultTransport
 	optimalConcurrentConnection := 32
-	thisTransporter.(*http.Transport).MaxIdleConns = optimalConcurrentConnection + 3
+	thisTransporter.(*http.Transport).MaxIdleConns = optimalConcurrentConnection * 2
 	thisTransporter.(*http.Transport).MaxIdleConnsPerHost = optimalConcurrentConnection
 	thisTransporter.(*http.Transport).IdleConnTimeout = 30 * time.Second
-	thisTransporter.(*http.Transport).MaxConnsPerHost = optimalConcurrentConnection + 3
-
+	thisTransporter.(*http.Transport).MaxConnsPerHost = optimalConcurrentConnection * 2
 	thisTransporter.(*http.Transport).DisableCompression = true
 
 	if ignoreTLSVerification {