Skip to content

Commit

Permalink
Increase websocket frame size (from erigon rpc client)
Browse files Browse the repository at this point in the history
This PR increases frame size, so it'll be possible to use more complicated RPC requests(like `eth_getBlockByNumber`, `trace_` (erigon)), via websocket

from: erigontech/erigon#2739

example block failure: https://etherscan.io/tx/0x1317d973a55cedf9b0f2df6ea48e8077dd176f5444a3423368a46d6e4db89982#internal
  • Loading branch information
jotto authored Mar 14, 2023
1 parent eca3d39 commit 7390d6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpc/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const (
wsPingInterval = 30 * time.Second
wsPingWriteTimeout = 5 * time.Second
wsPongTimeout = 30 * time.Second
wsMessageSizeLimit = 15 * 1024 * 1024
wsMessageSizeLimit = 32 * 1024 * 1024
)

var wsBufferPool = new(sync.Pool)
Expand Down

0 comments on commit 7390d6d

Please sign in to comment.