node-rate-limiter-flexible icon indicating copy to clipboard operation
node-rate-limiter-flexible copied to clipboard

RateLimiterQueue doesn't process requests evenly when execEvenly option enabled

Open animir opened this issue 4 years ago • 2 comments

Most likely, there is a bug with returned result from a limiter. When any limiter is created with execEvenly and request is delayed, it is delayed with setTimeout, but msBeforeNext is not updated after timeout. RateLimiterQueue relies on msBeforeNext to make decision on how a request should be processed/queued.

Further investigation required.

animir avatar May 08 '21 02:05 animir

Any updates on this?

arslnb avatar Feb 07 '23 06:02 arslnb

@arslnb I think, nobody looked into it.

animir avatar Feb 07 '23 08:02 animir