Browse Source

auto update script executed

Toby Chui 1 year ago
parent
commit
6365a11c3b
1 changed files with 2 additions and 0 deletions
  1. 2 0
      mod/dynamicproxy/dpcore/dpcore.go

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

@@ -93,7 +93,9 @@ func NewDynamicProxyCore(target *url.URL, prepender string) *ReverseProxy {
 	thisTransporter := http.DefaultTransport
 	thisTransporter.(*http.Transport).MaxIdleConns = 1000
 	thisTransporter.(*http.Transport).MaxIdleConnsPerHost = 1000
+	thisTransporter.(*http.Transport).IdleConnTimeout = 30 * time.Second
 	thisTransporter.(*http.Transport).MaxConnsPerHost = 120
+	thisTransporter.(*http.Transport).DisableCompression = true
 
 	return &ReverseProxy{
 		Director:  director,