Remove TCP deadline timeouts completely
Deadline timeouts are not useful, as they do not give any meaningful http error responses to the end user. Instead we now make use of contexts throught the system to detect query timeouts, and send error messages accordingly.
This commit is contained in:
parent
9fb7eec04b
commit
8f06b958ff
1 changed files with 0 additions and 2 deletions
|
@ -32,9 +32,7 @@ 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