diff --git a/rpc/websocket.go b/rpc/websocket.go index b1213fdfa66..1507eeed88c 100644 --- a/rpc/websocket.go +++ b/rpc/websocket.go @@ -35,7 +35,7 @@ import ( const ( wsReadBuffer = 1024 wsWriteBuffer = 1024 - wsPingInterval = 30 * time.Second + wsPingInterval = (wsPongTimeout * 9) / 10 wsPingWriteTimeout = 5 * time.Second wsPongTimeout = 30 * time.Second wsMessageSizeLimit = 32 * 1024 * 1024