-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
TokenBucketLimiter throws on interval below 1 second #48871
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
Comments
edited
Uh oh!
< 8000 p data-view-component="true">There was an error while loading. Please reload this page.
This has been discussed on #42194 and particularly #42194 (comment) TL;DR you shouldn’t use the Symony’s rate limiter if you need sub-second intervals, but you can still submit a PR to implement it (unless @wouterj changed his mind of course!). |
Thanks for clarifying! So maybe a docs issue currently. |
Maybe we could improve DX by validating the interval in the constructor of the |
The referenced PR is closed as completed, as there was a PR to fix it: #43677 So if something is wrong still, it would be good if someone can debug it. Are you up for that, @geek-merlin? |
@wouterj |
Hey, thanks for your report! |
Friendly ping? Should this still be open? I will close if I don't hear anything. |
Hey, I didn't hear anything so I'm going to close it. Feel free to comment if this is still relevant, I can always reopen! |
Uh oh!
There was an error while loading. Please reload this page.
Symfony version(s) affected
6.2.2
Description
I need limiter sometimes for very fine grained time intervals. But below 1 second it throws.
(Fixed WindowLimiter is better here but #47676)
How to reproduce
gives
Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: