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: TCPListener.SetDeadline doesn't work on Windows #4296
Labels
Milestone
Comments
It seems to me that the fix is simple, in src/pkg/net/fd_windows.go look for iosrv.ExecIO in accept and change second parameter from 0 to fd.rdeadline. Then after deadline it would return: AcceptEx tcp 127.0.0.1:31432: resource temporarily unavailable And this is what's strange, because it should probably return some form of timeout? |
Submitted CL at https://golang.org/cl/6815044 |
snaury, I agree with you, the "resource temporarily unavailable" is misleading. I am planning to change it once https://golang.org/cl/6604072/ is submitted. Alex |
This issue was closed by revision d12a7d3. Status changed to Fixed. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by liamzebedee:
The text was updated successfully, but these errors were encountered: