Update http.go

Timeout is too short.
RPC connection frequently fails.
This commit is contained in:
yutarommx 2018-06-26 23:05:31 +09:00 committed by GitHub
parent 598f786aab
commit 7495bf4469
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -167,8 +167,8 @@ func NewHTTPServer(cors []string, vhosts []string, srv *Server) *http.Server {
handler = newVHostHandler(vhosts, handler)
return &http.Server{
Handler: handler,
ReadTimeout: 5 * time.Second,
WriteTimeout: 10 * time.Second,
ReadTimeout: 60 * time.Second,
WriteTimeout: 60 * time.Second,
IdleTimeout: 120 * time.Second,
}
}