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

[libp2p-ping] Properly close the substream in the InboundUpgrade. #1606

Merged
merged 2 commits into from
Jun 12, 2020

Conversation

romanb
Copy link
Contributor

@romanb romanb commented Jun 12, 2020

Not doing so may result in FIN/RST frames being sent and received before earlier data frames. See libp2p/rust-yamux#81 (comment). This seems to be the cause for paritytech/substrate#6311 as it creates a possible race whereby FIN/RST frames may be received before data frames, causing ping upgrade failures.

Not doing so may result in FIN/RST frames being sent before
earlier data frames. See libp2p/rust-yamux#81 (comment).
Copy link
Contributor

@twittner twittner left a comment

Choose a reason for hiding this comment

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

👍 This restores the behaviour before dd0c5c3.

@romanb romanb merged commit e8bf34f into libp2p:master Jun 12, 2020
@romanb romanb deleted the fix-ping-substream-close branch June 12, 2020 15:41
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.

4 participants