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

streamer: fix hardcoded unstaked connections throttling rate #4877

Open
diman-io opened this issue Feb 8, 2025 · 0 comments
Open

streamer: fix hardcoded unstaked connections throttling rate #4877

diman-io opened this issue Feb 8, 2025 · 0 comments

Comments

@diman-io
Copy link

diman-io commented Feb 8, 2025

Problem

If I run a QUIC server with non-default settings like 2000/500, throttling unstaked connections by a constant 20% seems unfair.

const MAX_UNSTAKED_STREAMS_PERCENT: u64 = 20;

Proposed Solution

Replace this in StakedStreamLoadEMA implementation with max_unstaked_connections / (max_staked_connections + max_unstaked_connections)

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

No branches or pull requests

1 participant