Page MenuHomePhabricator

pingLimiter should return the throttle duration when the user is throttled
Open, Needs TriagePublic

Description

When using User::pingLimiter() / UserAuthority::limit() / RateLimiter::limit(), there should be a way to get the time the user needs to wait for the limit to clear, as typically we want to include this in the error message.

Related: T172293: Add Retry-After header when a rate limit has been triggered