Skip to content

Commit

Permalink
chore(ws): increase ws BufferSize & MessageSizeLimit (#192)
Browse files Browse the repository at this point in the history
Increase ws cache in rpc module
  • Loading branch information
mask-pp authored Dec 13, 2022
1 parent 804e7ed commit 78c1f57
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rpc/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 78c1f57

Please sign in to comment.