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

noise: don't fail handshake when early data is received without handler #1746

Merged
merged 1 commit into from
Sep 13, 2022

Conversation

marten-seemann
Copy link
Contributor

I just realized that the change we introduced in #1728 would preclude us from rolling out the change that @julian88110 is working on (see libp2p/specs#446). This means that this PR must make it into v0.23.0.

Copy link
Contributor

@julian88110 julian88110 left a comment

Choose a reason for hiding this comment

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

Marten, Thanks for changing this, yes the Muxer selection feature relies on this behavior for backward compatibility.

@marten-seemann
Copy link
Contributor Author

I just realized that libp2p/specs#446 uses the second and the third flight, so technically this would break. It's a good idea to be not fail the handshake in case we ever want to add some data to the first flight though.

Copy link
Collaborator

@MarcoPolo MarcoPolo left a comment

Choose a reason for hiding this comment

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

Nice catch

@marten-seemann marten-seemann merged commit ddfb6f9 into master Sep 13, 2022
@marten-seemann marten-seemann deleted the dont-fail-noise-handshake-on-early-data branch September 15, 2022 05:30
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.

3 participants