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

Fix mplex notifications system #455

Merged
merged 3 commits into from
Sep 4, 2018
Merged

Conversation

tomaka
Copy link
Member

@tomaka tomaka commented Sep 4, 2018

Fix #452
See the issue for a description of why this PR

inner.to_notify.insert(TASK_ID.with(|&t| t), task::current());
return Ok(Async::Ready(None));
inner.notifier_read.to_notify.lock().insert(TASK_ID.with(|&t| t), task::current());
return Ok(Async::NotReady);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This used to be Ready(None), which is a bug unrelated to this PR.

@tomaka tomaka merged commit ba4bd79 into libp2p:master Sep 4, 2018
@tomaka tomaka deleted the fix-mplex-notif branch September 4, 2018 23:53
twittner added a commit to twittner/yamux that referenced this pull request Sep 6, 2018
Implement a custom `Notify` implementation which in turn notifies
waiting tasks. This is similar to what rust-libp2p's mplex
implementation does (see libp2p/rust-libp2p#455)
for details.
twittner added a commit to twittner/yamux that referenced this pull request Sep 11, 2018
Implement a custom `Notify` implementation which in turn notifies
waiting tasks. This is similar to what rust-libp2p's mplex
implementation does (see libp2p/rust-libp2p#455)
for details.
xmas7 pushed a commit to RubyOnWorld/rust-yamux that referenced this pull request Sep 6, 2022
Implement a custom `Notify` implementation which in turn notifies
waiting tasks. This is similar to what rust-libp2p's mplex
implementation does (see libp2p/rust-libp2p#455)
for details.
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