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: TestDialTimeout failing on Plan 9 #15333
Comments
The expected timeout comes from dialChannel. |
CC: @bradfitz |
The problem is that the os-dependent dial function isn't called anymore from dialSerial. |
I propose CL 22143 to fix this issue, but I'm not really sure about the interaction with context.Context. |
CL https://golang.org/cl/22143 mentions this issue. |
I don't see this failure on my Windows XP pc. Alex |
CL https://golang.org/cl/22144 mentions this issue. |
I think Windows XP (any windows) is not currently broken, because plan9 uses different code. Alex |
@alexbrainman, according to https://msdn.microsoft.com/en-us/library/windows/desktop/ms737606(v=vs.85).aspx ConnectEx isn't available on Windows XP, yet my https://golang.org/cl/22101 deleted 1 of the 2 paths that checked whether ConnectEx was available. It seemed likely to break XP, or at least make XP go into the wrong code path. I think it just disabled the backup racer dial on XP, meaning timeouts wouldn't be reliable? |
ConnectEx does work on my Windows XP:
Alex |
I think there is an error in this documentation. As far I understand it, ConnectEx is available since Windows XP. This specific case in Go was probably written for Windows 2000. Amusingly, the German version of same page have the accurate version (appeared in Windows XP): https://msdn.microsoft.com/de-de/library/windows/desktop/ms737606(v=vs.85).aspx |
I agree with what @0intro said. I think non-ConnectEx code is actually for w2k. We don't support w2k, but Go runs on w2k just fine. So I think we should just let that code be as is. Alex |
If we don't support Go on Windows 2000, don't say we support it on the downloads page, don't have a builder for it, and don't have any developer with a Windows 2000 machine that regularly tests and reports its status, I am going to delete the non-ConnectEx code path from the net package and simplify things. Sorry, that's way too old. |
Sure. If you think this is worth breaking someone using (even unsupported) version of Go. Alex PS: I think you should be able to remove oldLookupPort and oldLookupIP too. Would you like me to send the change and test it here on my Windows XP? |
Yes, please. I have an XP install CD and license but I have not yet installed it, and my XP install CD is currently in a different city. |
Since CL 22101, TestDialTimeout is failing on Plan 9.
See http://build.golang.org/log/eb55b9009e42158295e02337ffa9b5ba1882a40b
The three last tests, which set a positive Dialer.Timeout or Dialer.Deadline, are no longer returning errTimeout.
The text was updated successfully, but these errors were encountered: