chore(ws): increase ws BufferSize & MessageSizeLimit (#192)

Increase ws cache in rpc module
This commit is contained in:
maskpp 2022-12-13 11:45:43 +08:00 committed by GitHub
parent 804e7edc23
commit 78c1f57fcf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)