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 panic in Yamux state machine when a remote closes a substream with an active timeout #1122

Merged
merged 4 commits into from
Sep 8, 2023

Conversation

tomaka
Copy link
Contributor

@tomaka tomaka commented Sep 8, 2023

Fix #1119

This fixes the logic of the Yamux state machine. Previously a substream was dead when its reading and writing side are closed. Now it also requires the substream to not register itself for later wake up.

Due to this change, I've also reviewed the usages of wake_up_after and restricted them to when we actually want to wake up later, as right now it is used quite liberally.

@tomaka tomaka added this pull request to the merge queue Sep 8, 2023
Merged via the queue into smol-dot:main with commit 85f6cad Sep 8, 2023
21 checks passed
@tomaka tomaka deleted the fix-1119 branch September 8, 2023 08:09
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.

Yamux assertion failed
1 participant