From 7495bf44691e14a8a039103f8f1d652b57e088bb Mon Sep 17 00:00:00 2001 From: yutarommx Date: Tue, 26 Jun 2018 23:05:31 +0900 Subject: [PATCH] Update http.go Timeout is too short. RPC connection frequently fails. --- rpc/http.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpc/http.go b/rpc/http.go index 6388d68961..2087e443b4 100644 --- a/rpc/http.go +++ b/rpc/http.go @@ -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, } }