mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
feat(ws): increase wsReadBuffer, wsWriteBuffer & `wsMessageSizeLi… (#568)
feat(ws): increase `wsReadBuffer`, `wsWriteBuffer` & `wsMessageSizeLimit`
This commit is contained in:
parent
ec2054c3ea
commit
6f99663b3b
1 changed files with 3 additions and 3 deletions
|
|
@ -33,12 +33,12 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
wsReadBuffer = 1024
|
wsReadBuffer = 3 * 1024
|
||||||
wsWriteBuffer = 1024
|
wsWriteBuffer = 3 * 1024
|
||||||
wsPingInterval = 30 * time.Second
|
wsPingInterval = 30 * time.Second
|
||||||
wsPingWriteTimeout = 5 * time.Second
|
wsPingWriteTimeout = 5 * time.Second
|
||||||
wsPongTimeout = 30 * time.Second
|
wsPongTimeout = 30 * time.Second
|
||||||
wsDefaultReadLimit = 32 * 1024 * 1024
|
wsDefaultReadLimit = 5 * 32 * 1024 * 1024
|
||||||
)
|
)
|
||||||
|
|
||||||
var wsBufferPool = new(sync.Pool)
|
var wsBufferPool = new(sync.Pool)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue