Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upnet: Dial ignores second result of Context.Deadline() #35594
Closed
Comments
This comment has been minimized.
This comment has been minimized.
I will submit a PR with fix shortly. |
This comment has been minimized.
This comment has been minimized.
Change https://golang.org/cl/207297 mentions this issue: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What version of Go are you using (
go version
)?Actually, the issue is pretty old. I've reproduced it on both 1.12 and 1.13 versions.
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
https://play.golang.org/p/oMNspjAQkeX
What did you expect to see?
It is expected to get "Connection refused" error.
What did you see instead?
"i/o timeout" is returned.