-
Notifications
You must be signed in to change notification settings - Fork 45
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
Implement a UDP transport #397
Conversation
# Conflicts: # go.mod # go.sum # pkg/snet/network.go # pkg/snet/snettest/env.go # vendor/modules.txt
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.
Just a couple of minor questions. Otherwise - great job!
} | ||
|
||
if lAddr, rAddr, err = origin(conn, deadline); err != nil { | ||
err = HandshakeError(err.Error()) |
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.
shouldn't we return here?
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.
@Darkren I guess we should. I copied it from stcp
with no changes. @evanlinjin What do you think about it?
} | ||
|
||
hash := cipher.SumSHA256(b.Bytes()) | ||
rPK, err := cipher2.PubKeyFromSig(cipher2.Sig(sig), cipher2.SHA256(hash)) |
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.
shouldn't we handle this error?
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.
Same here, just copied. I'm not sure. @evanlinjin What do you think?
Implement a UDP transport Former-commit-id: 45f4526
Did you run
make format && make check
? YesFixes #391
Changes:
How to test this PR:
skywire-services
againstfeature/sudp
make integration-startup-sudp
curl --data {'"recipient":"'$PK_A'", "message":"Hello"}' -X POST $CHAT_C
VisorA
logs