Skip to content

Commit

Permalink
Merge pull request #354 from x00b/fix/buffersize
Browse files Browse the repository at this point in the history
Fix/buffersize Causing high memory usage
  • Loading branch information
SchulteMK authored May 30, 2020
2 parents 5e33cb4 + b0f632a commit 81a5d3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ func (wac *Conn) connect() (err error) {
}()

dialer := &websocket.Dialer{
ReadBufferSize: 25 * 1024 * 1024,
WriteBufferSize: 10 * 1024 * 1024,
ReadBufferSize: 0,
WriteBufferSize: 0,
HandshakeTimeout: wac.msgTimeout,
Proxy: wac.Proxy,
}
Expand Down

0 comments on commit 81a5d3e

Please sign in to comment.