sethvargo / go-limiter

A supersonic rate limiting package for Go with HTTP middleware.
Apache License 2.0
555 stars 40 forks source link

Calling back the server time can cause an exception in the flow limiting mechanism #41

Closed yujiangjiang closed 7 months ago

yujiangjiang commented 1 year ago

image If the server time is adjusted to a previous time, the condition 'b. lastTick<currTick' will not occur, and 'b. availabilityTokens' will quickly drop to 0, and subsequent requests will be restricted from accessing

sethvargo commented 1 year ago

Pull Requests are welcome!