From 8c6e74eed497e1c7088d0362ff64581435b347dd Mon Sep 17 00:00:00 2001 From: Wihan de Beer Date: Fri, 25 Nov 2022 17:29:38 +0200 Subject: [PATCH] rpc: decrease websocket ping interval (#26253) This is to cater for more node providers. --- rpc/websocket.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpc/websocket.go b/rpc/websocket.go index f6d092885..21e446e9f 100644 --- a/rpc/websocket.go +++ b/rpc/websocket.go @@ -35,7 +35,7 @@ import ( const ( wsReadBuffer = 1024 wsWriteBuffer = 1024 - wsPingInterval = 60 * time.Second + wsPingInterval = 30 * time.Second wsPingWriteTimeout = 5 * time.Second wsPongTimeout = 30 * time.Second wsMessageSizeLimit = 15 * 1024 * 1024