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
http3: prefer IPv6 over IPv4 when dialing #3770
base: master
Are you sure you want to change the base?
Conversation
I'm not sure this is the correct fix. It seems like we should be able to handle multiple DNS responses, and fall back from IPv6 to IPv4 if IPv6 is not available (for example). That would be a bigger change, and would probably need to be done in the quic and not the http3 package.
Codecov Report
@@ Coverage Diff @@
## master #3770 +/- ##
=======================================
Coverage 84.49% 84.49%
=======================================
Files 142 142
Lines 14114 14118 +4
=======================================
+ Hits 11925 11929 +4
Misses 1769 1769
Partials 420 420
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
this doesn't fix the issue in our app because we use this kind of code:
cause => |
If you're setting the Issue for the fix of |
Does this means I've updated h3dial with a use case of a custom |
It's also using |
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.
Feels unfortunate to have a workaround here rather than fix this in the stdlib, but I agree with the agenda of pushing ipv6 ;)
The problem now is that if you do a |
Isn't the fallback mechanism defined by the IETF? |
This is also what curl is doing as explained in @bagder blog post: |
Fallback (happy eyeball) is another issue. see #3772 |
Strictly speaking, the preference of IPv6 is part of happy eyeballs. |
Fixes #3755.
I'm not sure this is the correct fix. It seems like we should be able to handle multiple DNS responses, and fall back from IPv6 to IPv4 if IPv6 is not available (for example). That would be a bigger change, and would probably need to be done in the quic and not the http3 package.