-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[call-v3] Fix leak with cq-based server (#37972)
Three problems: 1. We have an owning waker, but on the `Expire` path we never wake it, leading to calls being stranded until the pending timer runs out - instead we now call Finish and have it always wake things up (slightly more expensive in shutdown case, but not on the fast path) 2. Avoid a race condition whereby two threads could wake the same waker 3. Don't add new requests to the pending queue after we've removed all requests Closes #37972 COPYBARA_INTEGRATE_REVIEW=#37972 from ctiller:flake-fightas-21 2bbd1cf PiperOrigin-RevId: 688310530
- Loading branch information
1 parent
eacb2f7
commit c5999db
Showing
1 changed file
with
14 additions
and
7 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