-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
#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! |
|
@raman-m Yes, around midnight your time! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, some questions from my side, but then ok. Thanks!
All code review issues have been resolved! Awaiting your approval, @ggnaegi. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved, but the rest of work is 👇
- Update feature docs. Done in commit 1ed45d0 ✔️
Ready for delivery ✅
|
Fixes #1590
PeriodTimespan
value is greater thanPeriod
#1590Incrementing 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.