소스 검색

auto update script executed

Toby Chui 1 년 전
부모
커밋
2af94f5d2b
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 = 1000
-	thisTransporter.(*http.Transport).MaxIdleConnsPerHost = 1000
+	thisTransporter.(*http.Transport).MaxIdleConns = 0
+	thisTransporter.(*http.Transport).MaxIdleConnsPerHost = 2
 	thisTransporter.(*http.Transport).IdleConnTimeout = 30 * time.Second
 	thisTransporter.(*http.Transport).MaxConnsPerHost = 0
 	thisTransporter.(*http.Transport).DisableCompression = true