-
Notifications
You must be signed in to change notification settings - Fork 18k
net/http: unexpected timeout while waiting for connection #34595
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
Comments
using Benchmark like this error Get http://10.33.108.39:11222/index.php: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers) |
You can reproduce using my code. |
This issue seems to be a question about how to use Go, rather than a feature request or defect report about the Go language and/or toolchain. We have decided that our experiment to allow questions on the issue tracker has not had the outcome we desired, so I am closing this issue. I'm sorry that we can't answer your question here. There are many other methods to get help if you're still looking for answers:
Thanks |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
no sure.
Only reproduce on my version
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
When I use ApacheBench to express the server 127.0.0.1:8080
ab -c 30 -n 10000000 -k http://127.0.0.1:8080
I think my code is ok。No bug.
What did you see instead?
But about every 3-4 minute, I saw the error in my log
net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
my machine is ok.and this is my netstat.
LAST_ACK 2
CLOSE_WAIT 7
ESTABLISHED 108
SYN_SENT 3
TIME_WAIT 43
The text was updated successfully, but these errors were encountered: