Browse Source

auto update script executed

Toby Chui 1 năm trước cách đây
mục cha
commit
6365a11c3b
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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.DefaultTransport
 	thisTransporter.(*http.Transport).MaxIdleConns = 1000
 	thisTransporter.(*http.Transport).MaxIdleConns = 1000
 	thisTransporter.(*http.Transport).MaxIdleConnsPerHost = 1000
 	thisTransporter.(*http.Transport).MaxIdleConnsPerHost = 1000
+	thisTransporter.(*http.Transport).IdleConnTimeout = 30 * time.Second
 	thisTransporter.(*http.Transport).MaxConnsPerHost = 120
 	thisTransporter.(*http.Transport).MaxConnsPerHost = 120
+	thisTransporter.(*http.Transport).DisableCompression = true
 
 
 	return &ReverseProxy{
 	return &ReverseProxy{
 		Director:  director,
 		Director:  director,