-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
concurrency-limit: Drop permit on readiness (#751)
The concurrency-limit module holds permits until the response future is dropped. This is fine in theory, but we have reports of clients hitting the concurrency limit unexpectedly. This change ensures that the permit is released immediately as soon as the inner future becomes ready, regardless of how long the response future is held. This also adds trace logging when the permit is released.
- Loading branch information
Showing
1 changed file
with
22 additions
and
26 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