Skip to content

Commit

Permalink
Reset the websocket consts to the go-ethereum values
Browse files Browse the repository at this point in the history
previously the buffer size was increased to 1M to accomodate the inter
node communications, and since then the websocket calls have been
replaced by the interface calls, so reverting these values
  • Loading branch information
gameofpointers committed Feb 6, 2025
1 parent afeda4f commit b94772a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rpc/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ import (
)

const (
wsReadBuffer = 1024 * 1024
wsWriteBuffer = 1024 * 1024
wsPingInterval = 60 * time.Second
wsReadBuffer = 1024
wsWriteBuffer = 1024
wsPingInterval = 30 * time.Second
wsPingWriteTimeout = 5 * time.Second
wsMessageSizeLimit = 210 * 1024 * 1024
wsMessageSizeLimit = 32 * 1024 * 1024
)

var wsBufferPool = new(sync.Pool)
Expand Down

0 comments on commit b94772a

Please sign in to comment.