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

Disconnect slow peers and WS clients by default #429

Merged
merged 3 commits into from
Dec 3, 2024
Merged

Conversation

Neverlord
Copy link
Member

Adds a new maximum buffer size of peers and WebSocket clients. When reaching that limit, Broker will automatically sever the connection by default. Alternatively, users may select a DropOldest or DropNewest policy. Buffer sizes are configurable as well.

@Neverlord Neverlord force-pushed the issue/gh-426 branch 2 times, most recently from 203ecce to 215b898 Compare September 24, 2024 14:57
@Neverlord Neverlord marked this pull request as ready for review October 20, 2024 08:27
Copy link
Member

@ckreibich ckreibich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all looks good to me Dominik. I'm sorry to have left this sitting for so long — I've been working with this branch throughout and am about to open a follow-up PR with a few tweaks, but let me merge this next. (I only rebased to bring the changes back to the top.)

@ckreibich ckreibich merged commit 7df7358 into master Dec 3, 2024
19 checks passed
@ckreibich ckreibich deleted the issue/gh-426 branch December 3, 2024 09:14
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.

2 participants