feat(ws): increase wsReadBuffer, wsWriteBuffer & `wsMessageSizeLi… (#568)

feat(ws): increase `wsReadBuffer`, `wsWriteBuffer` & `wsMessageSizeLimit`
This commit is contained in:
HAOYUatHZ 2023-11-20 15:34:59 +08:00 committed by GitHub
parent ec2054c3ea
commit 6f99663b3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,12 +33,12 @@ import (
)
const (
wsReadBuffer = 1024
wsWriteBuffer = 1024
wsReadBuffer = 3 * 1024
wsWriteBuffer = 3 * 1024
wsPingInterval = 30 * time.Second
wsPingWriteTimeout = 5 * time.Second
wsPongTimeout = 30 * time.Second
wsDefaultReadLimit = 32 * 1024 * 1024
wsDefaultReadLimit = 5 * 32 * 1024 * 1024
)
var wsBufferPool = new(sync.Pool)