Set HTTP request timeout durations

This commit is contained in:
Tobie Morgan Hitchcock 2017-02-23 21:47:39 +00:00
parent a3fd5a0775
commit a5aefdb8ba

View file

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