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

fix: check ws max send buffer size over time #1719

Merged
merged 1 commit into from
Apr 14, 2024
Merged

Conversation

tkurki
Copy link
Member

@tkurki tkurki commented Apr 14, 2024

Fixes #1718

Do not immediately hand ws up if the max send buffer size is exceeded, but start monitoring for MAXSENDBUFFERCHECKTIME milliseconds. If the buffer remains above the threshold all the time terminate the connection. If the buffer has dropped below the threshold during subsequent writes to the ws connection the timer is reset.

@tkurki tkurki requested review from sbender9 and panaaj April 14, 2024 05:48
@tkurki tkurki added the fix label Apr 14, 2024
Fixes #1718

Do not immediately hand ws up if the max send buffer size is
exceeded, but start monitoring for MAXSENDBUFFERCHECKTIME
milliseconds. If the buffer remains above the threshold all
the time terminate the connection. If the buffer has dropped
below the threshold during subsequent writes to the ws
connection the timer is reset.
@tkurki tkurki merged commit 44ca476 into master Apr 14, 2024
4 checks passed
@tkurki tkurki deleted the fix-sendbuffer-bursts branch April 14, 2024 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Initial delta burst causes send buffer overflow and webapp reconnect loop
2 participants