-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Conversation
There was a problem hiding this 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?
how did it work? |
There was a problem hiding this 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.
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...
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). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh boy.
Fixes #1477.
This is bad. We'll need to backport this and release v0.19.2.