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

holepunch: fix incorrect message type for the SYNC message #1478

Merged
merged 1 commit into from
May 10, 2022

Conversation

marten-seemann
Copy link
Contributor

Fixes #1477.

This is bad. We'll need to backport this and release v0.19.2.

Copy link
Contributor

@vyzo vyzo left a comment

Choose a reason for hiding this comment

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

ouch, can you check the handler as well?

@vyzo
Copy link
Contributor

vyzo commented May 10, 2022

how did it work?

Copy link
Contributor

@vyzo vyzo left a comment

Choose a reason for hiding this comment

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

spec is CONNECT, CONNECT, SYNC; the implementation is correct.

@marten-seemann
Copy link
Contributor Author

marten-seemann commented May 10, 2022

how did it work?

It did before the refactor. We didn't do any manual end-to-end testing after the refactor. Yet another reason why we need Testground tests for this...

spec is CONNECT, CONNECT, SYNC; the implementation is correct.

The current implementation doesn't send any SYNC. Before the refactoring, this was https://github.com/libp2p/go-libp2p/blob/v0.18.1/p2p/protocol/holepunch/coordination.go#L204-L210 (unfortunately git doesn't produce helpful diffs when you split one file into two, so this was easy to miss).

Copy link
Contributor

@vyzo vyzo left a comment

Choose a reason for hiding this comment

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

oh boy.

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.

holepuncher not sending sync message
2 participants