Override default timeout durations

This commit is contained in:
Tobie Morgan Hitchcock 2019-11-21 08:55:14 +00:00
parent 69a8e8f84f
commit 02442fb6d9

View file

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