From 38577eeea4e419a4fcb652e2122b4cc8881cd2ce 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 f6d09288590c..21e446e9f816 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