Set HTTP request timeout durations
This commit is contained in:
parent
a3fd5a0775
commit
a5aefdb8ba
1 changed files with 3 additions and 0 deletions
|
@ -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())
|
||||
|
||||
|
|
Loading…
Reference in a new issue