Skip to content

Fix ThrottleRequests over-throttling with multiple distinct rate limit keys (#54386)#58707

Merged
taylorotwell merged 1 commit intolaravel:masterfrom
HeathNaylor:bugfix/throttle-requests-multiple-limits
Feb 9, 2026
Merged

Fix ThrottleRequests over-throttling with multiple distinct rate limit keys (#54386)#58707
taylorotwell merged 1 commit intolaravel:masterfrom
HeathNaylor:bugfix/throttle-requests-multiple-limits

Conversation

@HeathNaylor
Copy link
Contributor

Fixes #54386

When using two or more rate limits with different keys the rate limiter over throttles requests due to limits being incremented when they should not be. This PR splits the loop to check the limits first and then increment them.

@HeathNaylor HeathNaylor force-pushed the bugfix/throttle-requests-multiple-limits branch from 9c0c15c to b72effb Compare February 9, 2026 08:47
@taylorotwell taylorotwell merged commit 6010b37 into laravel:master Feb 9, 2026
44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants