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: Dialer{DualStack: true}.Dial("tcp", "DNS reg-name") mishandles and cancels the winner connection #15035
Comments
Sorry, I completely overlooked this case during the review. |
This snippet fails in a similar way, using the go1.6 release:
The
I would interpret "the dial should be canceled" to mean that after Was |
I think both cases are slightly different. The former, which I mentioned, is just about how to handle the hidden channel for cancellation of multiple dial racers. The latter is for customer's dial cancellation.
I believe the former. |
Then this is a pre-existing bug in So if cancelation were not retroactive, then |
Yup, agreed. |
I think the bug is here: The |
CL https://golang.org/cl/21497 mentions this issue. |
The following snippet fails mostly with tip:
A quick look: It seems like dialParallel in dial.go cancels all racers, not only losers but a winner connection. This issue occurs only on tip (Go 1.7 devel).
/CC @pmarks-net
The text was updated successfully, but these errors were encountered: