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

quic: return a more meaningful error when dialing QUIC draft-29 #2519

Closed
wants to merge 1 commit into from

Conversation

marten-seemann
Copy link
Contributor

Fixes #2515.

@marten-seemann marten-seemann requested a review from Jorropo August 24, 2023 07:38
@@ -21,6 +23,8 @@ func ToQuicMultiaddr(na net.Addr, version quic.VersionNumber) (ma.Multiaddr, err
switch version {
case quic.Version1:
return udpMA.Encapsulate(quicV1MA), nil
case quicDraft29:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure if this is needed here, but it certainly doesn't hurt.

Copy link
Contributor

@Jorropo Jorropo left a comment

Choose a reason for hiding this comment

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

SGTM thx

@marten-seemann
Copy link
Contributor Author

I'm not sure if this fix will still work with #2520. But that's a bug that we need to fix.

@marten-seemann
Copy link
Contributor Author

With #2520, this won't work any more, because it's not the QUIC transport's responsibility any more to handle /quic addresses. Instead, the swarm would now return an ErrNoGoodAddresses. I'm not sure if we should change that, since this an exported error and users might do an error assertion.

@Jorropo, any thoughts?

@marten-seemann
Copy link
Contributor Author

Closing. We'll solve this in the swarm after #2437 has landed.

@marten-seemann marten-seemann deleted the quic-draft-29-error branch August 25, 2023 09:11
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.

Better error message when trying to dial /quic peer
3 participants