forked from libp2p/rust-libp2p
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix missed task notifications. (libp2p#1210)
Addresses libp2p#1206 by always registering the current task before calling poll_*_notify functions. This is in the same spirit as the corresponding fix for yamux in libp2p/rust-yamux#54. Also adds missing registration of the current task in close() and flush_all(), which have been observed to cause stalls when trying to do a graceful connection shutdown / close.
- Loading branch information
Showing
1 changed file
with
10 additions
and
19 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