From bc5f773ba650de968e2d35041ba83cd34c825376 Mon Sep 17 00:00:00 2001 From: John Date: Tue, 19 May 2020 19:16:47 +0800 Subject: [PATCH] make WriteTimeout default to 0 for ghttp.Server --- net/ghttp/ghttp_server_config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ghttp/ghttp_server_config.go b/net/ghttp/ghttp_server_config.go index 0fdb9962c..9126c0143 100644 --- a/net/ghttp/ghttp_server_config.go +++ b/net/ghttp/ghttp_server_config.go @@ -240,7 +240,7 @@ func Config() ServerConfig { HTTPSAddr: "", Handler: nil, ReadTimeout: 60 * time.Second, - WriteTimeout: 60 * time.Second, + WriteTimeout: 0, // No timeout. IdleTimeout: 60 * time.Second, MaxHeaderBytes: 1024, KeepAlive: true,