From 149beccd148859d48644dac066d2ec9658af71a4 Mon Sep 17 00:00:00 2001 From: Daniel Liu <139250065@qq.com> Date: Thu, 24 Apr 2025 19:09:42 +0800 Subject: [PATCH] rpc: decrease websocket ping interval #26253 (#979) This is to cater for more node providers. Co-authored-by: Wihan de Beer --- rpc/websocket.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpc/websocket.go b/rpc/websocket.go index e86dbc5a3e..fad51ffaaf 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