-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
finagle-core: Fix rate limiter if negative rate or after window
Problem When rate is negative then request could be executed, and after one elapsed time windows rate is not well modified. Solution Refuse request when rate is negative and reset correctly limit after one elapsed time windows. Signed-off-by: Vladimir Kostyukov <vkostyukov@twitter.com> #766 Differential Revision: https://phabricator.twitter.biz/D322952
- Loading branch information
Showing
2 changed files
with
20 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters