From 02442fb6d9bbeedb2ab1295c95884f61424e11f6 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Thu, 21 Nov 2019 08:55:14 +0000 Subject: [PATCH] Override default timeout durations --- web/web.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/web.go b/web/web.go index a75ef6b2..990e27e1 100644 --- a/web/web.go +++ b/web/web.go @@ -31,6 +31,8 @@ func Setup(opts *cnf.Options) (err error) { routes(s) s.SetName("web") + s.SetReadTimeout("5s") + s.SetWriteTimeout("60s") s.SetIdleTimeout("650s") s.SetHTTPErrorHandler(errors) s.Logger().SetLogger(log.Instance())