Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exposing read_buffer_size #3178

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ohaddahan
Copy link

@ohaddahan ohaddahan commented Jan 16, 2025

The default ws read_buffer_size is 128KB which is quite big.
Exposing a method to enable changing it by the user.
Did some comparisons and without it, 10K connections takes about 1.3GB, changing the buffer to 1024 versus the default 128K drops down to 40MB.

https://github.com/ohaddahan/rust-websockets

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant