From d759617d1f209e0b6df66b3587b8f183cc99afa9 Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Mon, 18 Apr 2022 09:33:19 +0100 Subject: [PATCH] Increase write timeout to prevent forcibly closing connections. --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 833c8aa..82f45b0 100644 --- a/main.go +++ b/main.go @@ -263,7 +263,7 @@ func main() { listener, err := net.Listen("unix", socket) srv := &http.Server{ ReadTimeout: 5 * time.Second, - WriteTimeout: 10 * time.Second, + WriteTimeout: 1 * time.Hour, Addr: ":8080", Handler: &requesthandler{}, }