-
Notifications
You must be signed in to change notification settings - Fork 519
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a race condition in trio quic shutdown.
It was possible to have a "lost wakeup" situation where we had stuff to send but the trio worker was blocked indefinitely in the receive. There is no test for this as the race is very race-y and I can't reproduce it reliably in the test suite, though I was able to do reliable replication a different way when debugging. I also reordered event processing to happen after timer handling but before sending in the trio and sync quic code. The async code already worked this way due to its different struture and needed no changes.
- Loading branch information
Showing
2 changed files
with
18 additions
and
2 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
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