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

Added bandwidth throttling to the websocket stream #532

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open

Added bandwidth throttling to the websocket stream #532

wants to merge 14 commits into from

Conversation

nvanlaerebeke
Copy link

For a project I needed to send larger amounts of data and needed the ability to throttle it to a user defined amount.

Added a ThrottledStream class that just wait if the bytes/sec is going over the set limit.
Profiling showed no performance impact, also kept it to 2 simple properties, one to set the maximum bytes/sec and one to get the current bytes/sec.

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