Преглед на файлове

auto update script executed

Toby Chui преди 2 години
родител
ревизия
a60fe9d3cf
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      mod/dynamicproxy/dpcore/dpcore.go

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

@@ -91,9 +91,9 @@ func NewDynamicProxyCore(target *url.URL, prepender string) *ReverseProxy {
 
 	//Hack the default transporter to handle more connections
 	thisTransporter := http.DefaultTransport
-	thisTransporter.(*http.Transport).MaxIdleConns = 1000
-	thisTransporter.(*http.Transport).MaxIdleConnsPerHost = 1000
-	thisTransporter.(*http.Transport).IdleConnTimeout = 30 * time.Second
+	thisTransporter.(*http.Transport).MaxIdleConns = 3000
+	thisTransporter.(*http.Transport).MaxIdleConnsPerHost = 3000
+	thisTransporter.(*http.Transport).IdleConnTimeout = 10 * time.Second
 	thisTransporter.(*http.Transport).MaxConnsPerHost = 0
 	thisTransporter.(*http.Transport).DisableCompression = true