Skip to content

Commit ac626d1

Browse files
committed
rpc: adjust websocket ping interval
1 parent 34d5072 commit ac626d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rpc/websocket.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import (
3535
const (
3636
wsReadBuffer = 1024
3737
wsWriteBuffer = 1024
38-
wsPingInterval = 30 * time.Second
38+
wsPingInterval = (wsPongTimeout * 9) / 10
3939
wsPingWriteTimeout = 5 * time.Second
4040
wsPongTimeout = 30 * time.Second
4141
wsMessageSizeLimit = 32 * 1024 * 1024

0 commit comments

Comments
 (0)