From 97243f3a7657a302dca45910429b9b6d198259f4 Mon Sep 17 00:00:00 2001 From: winsvega Date: Mon, 16 Mar 2020 12:33:32 +0300 Subject: [PATCH] geth retesteth: increase retesteth default http timeouts (#20767) --- cmd/geth/retesteth.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cmd/geth/retesteth.go b/cmd/geth/retesteth.go index ab7981e518..629c2ea7f2 100644 --- a/cmd/geth/retesteth.go +++ b/cmd/geth/retesteth.go @@ -889,8 +889,13 @@ func retesteth(ctx *cli.Context) error { cors := splitAndTrim(ctx.GlobalString(utils.RPCCORSDomainFlag.Name)) // start http server + var RetestethHTTPTimeouts = rpc.HTTPTimeouts{ + ReadTimeout: 120 * time.Second, + WriteTimeout: 120 * time.Second, + IdleTimeout: 120 * time.Second, + } httpEndpoint := fmt.Sprintf("%s:%d", ctx.GlobalString(utils.RPCListenAddrFlag.Name), ctx.Int(rpcPortFlag.Name)) - listener, _, err := rpc.StartHTTPEndpoint(httpEndpoint, rpcAPI, []string{"test", "eth", "debug", "web3"}, cors, vhosts, rpc.DefaultHTTPTimeouts) + listener, _, err := rpc.StartHTTPEndpoint(httpEndpoint, rpcAPI, []string{"test", "eth", "debug", "web3"}, cors, vhosts, RetestethHTTPTimeouts) if err != nil { utils.Fatalf("Could not start RPC api: %v", err) }