Skip to content

Commit

Permalink
perf: increase web socket channels capacity (#709)
Browse files Browse the repository at this point in the history
* chore(release): update changelog and version to 0.13.2

* chore(release): update changelog and version to 0.13.3

* chore: increase defaultWSWriteChanCapacity 100 -> 500

* chore: subBufferSize 500
  • Loading branch information
lklimek authored Dec 11, 2023
1 parent 29b27c1 commit 6548b56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/rpc/core/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (

const (
// Buffer on the Tendermint (server) side to allow some slowness in clients.
subBufferSize = 100
subBufferSize = 500

// maxQueryLength is the maximum length of a query string that will be
// accepted. This is just a safety check to avoid outlandish queries.
Expand Down
2 changes: 1 addition & 1 deletion rpc/jsonrpc/server/ws_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
// WebSocket handler

const (
defaultWSWriteChanCapacity = 100
defaultWSWriteChanCapacity = 500
defaultWSWriteWait = 10 * time.Second
defaultWSReadWait = 30 * time.Second
defaultWSPingPeriod = (defaultWSReadWait * 9) / 10
Expand Down

0 comments on commit 6548b56

Please sign in to comment.