net/http: fail to trigger io/read timeout #23024
Closed
Labels
Comments
You are not using |
Emmm, Sorry. But I want to figure out what I found that if no header is sent by the server, there is no It just says:
And the client just wait for time longer than instead of showing:
Is this a feature/problem related to the |
If you have any questions about Go, please use https://golang.org/wiki/Questions. The issue tracker is only used to report bugs and propose specific changes. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What version of Go are you using (
go version
)?go version go1.9 linux/amd64
Does this issue reproduce with the latest release?
not sure
What operating system and processor architecture are you using (
go env
)?What did you do?
Just something like that, I sent an HTTP request to the remote server. But got stuck on the network request.
What did you expect to see?
if read timeout:
What did you see instead?
I saw many io/timeout in the logs which means the read timeout setting worked.
However, it finally got stuck.
I dump the following goroutine information with something unimportant omitted.
I could find the network connection is still established:
and no tcp packs on the wire is found:
The text was updated successfully, but these errors were encountered: