Quellcode durchsuchen

auto update script executed

Toby Chui vor 1 Jahr
Ursprung
Commit
55c9668c98
1 geänderte Dateien mit 2 neuen und 3 gelöschten Zeilen
  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 {