From aa3a5d28da415041523a4d20df77497116508b9f Mon Sep 17 00:00:00 2001 From: achieve <44516835+chieve-bale@users.noreply.github.com> Date: Tue, 1 Aug 2023 08:51:58 +0800 Subject: [PATCH] optimize: increase http client timeout (#2315) --- internal/download/download.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/download/download.go b/internal/download/download.go index a82af5a..feaec23 100644 --- a/internal/download/download.go +++ b/internal/download/download.go @@ -33,7 +33,7 @@ var client = &http.Client{ TLSNextProto: map[string]func(authority string, c *tls.Conn) http.RoundTripper{}, MaxIdleConnsPerHost: 999, }, - Timeout: time.Second * 5, + Timeout: time.Second * 15, } var clienth2 = &http.Client{ @@ -47,7 +47,7 @@ var clienth2 = &http.Client{ ForceAttemptHTTP2: true, MaxIdleConnsPerHost: 999, }, - Timeout: time.Second * 5, + Timeout: time.Second * 15, } // ErrOverSize 响应主体过大时返回此错误