From 94d017242f4a062a64a328fd165513c8bd762710 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Thu, 19 Nov 2020 20:32:09 +0000 Subject: [PATCH] Decrease idle timeout for keepalive requests --- web/web.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/web.go b/web/web.go index ce8bf0a8..ff3b4004 100644 --- a/web/web.go +++ b/web/web.go @@ -31,9 +31,9 @@ func Setup(opts *cnf.Options) (err error) { routes(s) s.SetName("web") + s.SetIdleTimeout("5s") s.SetReadTimeout("30s") s.SetWriteTimeout("60s") - s.SetIdleTimeout("650s") s.SetHTTPErrorHandler(errors) s.Logger().SetLogger(log.Instance())