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
#1590 Use correct interval for request counting #1592
base: develop
Are you sure you want to change the base?
#1590 Use correct interval for request counting #1592
Conversation
Hi Sergii! Thanks for the solution and interest in the project! I've resolved one merge conflict. And pipelines are green. |
Yes, sure. |
Sergii, Now I see that at least your changes don't break current features. Could I ask you to re-create PR please? Unfortunately your feature branch is broken. Your forked develop branch must be the same as develop branch in source repo!
As soon as you've created new PR, this PR will be closed as duplicate. |
Hello Raman. |
No worries, Sergii! |
Sergii, |
sergio-str commented on May 29, 2023:
Well... 3 weeks have been passed. |
a26e1ac
to
8910ba1
Compare
The feature branch has been rebased onto ThreeMammals:develop! |
047790a
to
6f4221c
Compare
4e08b8f
to
ef68e12
Compare
ef68e12
to
5b9744c
Compare
Fixes #1590
Incrementing request counter if request time is in the interval
[FirstRequestTime, FirstRequestTime + PeriodTimespan]
seems is incorrect. PeriodTimespan is a "ban" period, not a period for request counting. In case of PeriodTimespan interval significantly exceeds Period, Rate Limiting feature counts number of requests longer than expected. It leads to false rate limit exceeding error.Proposed Changes
Increment request counter when request time within interval
[FirstRequestTime, FirstRequestTime + RateLimitingSettingPeriod]
respectively to the Rate Limiting docs.