Sfoglia il codice sorgente

auto update script executed

Toby Chui 1 anno fa
parent
commit
6365a11c3b
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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,