-
Notifications
You must be signed in to change notification settings - Fork 1.1k
holepunch: fix incorrect message type for the SYNC message, release v0.19.2 #1479
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
Conversation
I'm closing and reopening the PR to see if that has any effect on the |
Suggested version: Changes in (empty)
Cutting a Release (when not on
|
Thank you @galargh and @laurentsenta! |
require.Equal(t, events[2].Type, holepunch.EndHolePunchEvtT) | ||
require.Equal(t, holepunch.StartHolePunchEvtT, h2Events[0].Type) | ||
require.Equal(t, holepunch.HolePunchAttemptEvtT, h2Events[1].Type) | ||
require.Equal(t, holepunch.EndHolePunchEvtT, h2Events[2].Type) |
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.
Should you check if it was successful here? (by checking this field maybe:
go-libp2p/p2p/protocol/holepunch/tracer.go
Line 180 in 41902ec
Success: err == nil, |
Or do you just care that this attempt happened and not necessarily that it was successful?
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.
Good idea. Let's fix this on master though, not in this backport.
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.
Actually, on this peer's side Success
will be true even if it just sent the CONNECT instead of the SYNC message.
No description provided.