From fd2ca28876e2a79774bec5f4c1f6e192fce0b5f9 Mon Sep 17 00:00:00 2001 From: eson <9673575+githubcontent@user.noreply.gitee.com> Date: Mon, 21 Aug 2023 19:07:02 +0800 Subject: [PATCH] fix --- proxyserver/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/proxyserver/main.go b/proxyserver/main.go index f1fcec72..0f98ac53 100644 --- a/proxyserver/main.go +++ b/proxyserver/main.go @@ -168,14 +168,14 @@ func NewBackend(mux *http.ServeMux, httpAddress string, muxPaths ...string) *Bac client := &http.Client{ Transport: &http.Transport{ DialContext: (&net.Dialer{ - Timeout: 60 * time.Second, + Timeout: 300 * time.Second, KeepAlive: 60 * time.Second, }).DialContext, ForceAttemptHTTP2: true, MaxIdleConns: 100, MaxIdleConnsPerHost: 100, - IdleConnTimeout: 90 * time.Second, - TLSHandshakeTimeout: 10 * time.Second, + IdleConnTimeout: 300 * time.Second, + TLSHandshakeTimeout: 300 * time.Second, ExpectContinueTimeout: 1 * time.Second, }, }