-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
net: Dial only tries the first address #9801
Comments
It would be surprising if If you want to try multiple the other addresses after the first one fails, use |
@adg I must have got some really broken
|
In
On machine that owns
And after trying Firefox:
Chrome only generates one SYN, that's true. Telnet on mac and on linux behaves the same. Wget tries different ips, curl does the same. |
Well colour me surprised! Note that, at least in telnet's case, you can tell that it is not the system-level IOW, |
Looks like Are |
I think so. Go's standard library doesn't provide anything cross-platform that is lower level than
I don't think the I see |
One solution is to provide a |
Do you think it should be 3rd party library? Let's update |
Maybe the The |
This issue contains several use cases, and I'm still not sure what would be the best bet. For what it's worth, we need to address following issues and find out some compromises for them eventually.
|
I originally tried to create an issue to address 3.2. Can you reopen this issue or create a separate one? |
Please open a new issue with a concrete use case and/or an API proposal. As @adg mentioned above, adding something fancy stuff that can accept user's strategy/discipline for controlling multiple endpoints (because there's no one-size-fits-all way to this sort of issue, to a system on top the internet) to net.Dialer might be acceptable if people think it's worth having. |
Everything is great when the first ip is available:
But when ip is not available,
net.Dial
fails without retrying the next ip:Happened with docker: moby/moby#10614
The text was updated successfully, but these errors were encountered: