Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mplex] Fix missed task notifications. #1210

Merged
merged 1 commit into from
Jul 24, 2019
Merged

Conversation

romanb
Copy link
Contributor

@romanb romanb commented Jul 24, 2019

Addresses #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 in certain tests. This is the issue I was running into in the context of some other work and which caused me to submit this patch to cover #1206 as well.

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.
@romanb romanb changed the title Fix missed task notifications. [mplex] Fix missed task notifications. Jul 24, 2019
@romanb romanb merged commit bcc7c4d into libp2p:master Jul 24, 2019
@romanb romanb deleted the mplex-fix-notify branch July 24, 2019 09:33
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