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

[core] Ratelimiters should allow requests larger than chunk size #617

Merged
merged 2 commits into from
Jan 31, 2023

Conversation

alanmcgovern
Copy link
Owner

If the ratelimiter is set to download at 15kB/sec or less, the amount of data in the ratelimit will always be less than the size of one block. In this case, we should allow the request to succeed.

Once there's negative data left in the allowance, deny requests. As the ratelimiter is topped up over time, future requests will be unblocked.

If the ratelimiter is set to download at 15kB/sec or less, the
amount of data in the ratelimit will always be less than the size
of one block. In this case, we should allow the request to succeed.

Once there's negative data left in the allowance, deny requests.
As the ratelimiter is topped up over time, future requests will
be unblocked.
@alanmcgovern alanmcgovern merged commit 0030a5b into master Jan 31, 2023
@alanmcgovern alanmcgovern deleted the fix-ratelimiter-with-tiny-requests branch January 31, 2023 19:57
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