Decrease idle timeout for keepalive requests

This commit is contained in:
Tobie Morgan Hitchcock 2020-11-19 20:32:09 +00:00
parent fb1f1c0340
commit 94d017242f

View file

@ -31,9 +31,9 @@ func Setup(opts *cnf.Options) (err error) {
routes(s) routes(s)
s.SetName("web") s.SetName("web")
s.SetIdleTimeout("5s")
s.SetReadTimeout("30s") s.SetReadTimeout("30s")
s.SetWriteTimeout("60s") s.SetWriteTimeout("60s")
s.SetIdleTimeout("650s")
s.SetHTTPErrorHandler(errors) s.SetHTTPErrorHandler(errors)
s.Logger().SetLogger(log.Instance()) s.Logger().SetLogger(log.Instance())