diff --git a/rpc/websocket.go b/rpc/websocket.go index 1180bb964f17..15bfb1849560 100644 --- a/rpc/websocket.go +++ b/rpc/websocket.go @@ -34,12 +34,12 @@ import ( ) const ( - wsReadBuffer = 1024 - wsWriteBuffer = 1024 + wsReadBuffer = 3 * 1024 + wsWriteBuffer = 3 * 1024 wsPingInterval = 60 * time.Second wsPingWriteTimeout = 5 * time.Second wsPongTimeout = 30 * time.Second - wsMessageSizeLimit = 15 * 1024 * 1024 + wsMessageSizeLimit = 10 * 15 * 1024 * 1024 ) var wsBufferPool = new(sync.Pool)