Override default timeout durations
This commit is contained in:
parent
69a8e8f84f
commit
02442fb6d9
1 changed files with 2 additions and 0 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue