From e2413fc30d965930329234f9e889aa9c0ce3c621 Mon Sep 17 00:00:00 2001 From: starry <115192496+sky22333@users.noreply.github.com> Date: Fri, 15 Aug 2025 21:52:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=99=E5=93=8D=E5=BA=94=E7=9A=84=E6=9C=80?= =?UTF-8?q?=E5=A4=A7=E5=85=81=E8=AE=B8=E6=97=B6=E9=97=B4=E6=94=B9=E4=B8=BA?= =?UTF-8?q?30=E5=88=86=E9=92=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit h2写响应的最大允许时间从5分钟增加至30分钟,兼容大文件下载 --- src/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.go b/src/main.go index 78dd6ec..509e66b 100644 --- a/src/main.go +++ b/src/main.go @@ -132,7 +132,7 @@ func main() { server := &http.Server{ Addr: fmt.Sprintf("%s:%d", cfg.Server.Host, cfg.Server.Port), ReadTimeout: 60 * time.Second, - WriteTimeout: 300 * time.Second, + WriteTimeout: 30 * time.Minute, IdleTimeout: 120 * time.Second, }