net: Dialing IPv6 with timeout returns inconsistent error #44543
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?Linux on amd64,
5.8.0-43-generic #49-Ubuntu
What did you do?
Set up a network namespace with an IPv6 prefix on lo.
Run the following test:
Changing the timeout to
2 * time.Second
makes the test pass. Here is a trace for one second timeout:And here one for two seconds:
Note that the test finishes pretty much after one second, so maybe there is a race with an internal timeout?
What did you expect to see?
Dial returns either a timeout or ENETUNREACH in both cases.
What did you see instead?
Dial returns ENETUNREACH in one case, timeout error in the other one.
The text was updated successfully, but these errors were encountered: