mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
chore(ws): increase ws BufferSize & MessageSizeLimit (#192)
Increase ws cache in rpc module
This commit is contained in:
parent
804e7edc23
commit
78c1f57fcf
1 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue