coder/websocket

Configurable buffer sizes

sermojohn opened this issue · 1 comments

Which is the suggested way to configure this library for high throughput connection, eg 10Mbit or more?

My understanding from navigating the code is that there is no way to configure the read/write buffer size. Do you think this could be a useful addition to the library?
Also increasing the read buffer size should probably be combined with increasing the client OS socket read buffer to prevent overload, which usually results to automatic closing of the connection.

Any feedback on this would be very useful for my use case. Also I am available to work on an enhancement to this library to support high throughput.

nhooyr commented

No current support to configure buffer sizes but I'm not against adding it. Don't have any recommendations. If you don't have benchmarks, I wouldn't modify anything.