Skip to content
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/http: Consecutive Get requests in quick succession sometimes fail when remote server closes connection after responding with keep-alive #8122

Closed
cgilling opened this issue May 30, 2014 · 1 comment

Comments

@cgilling
Copy link

What does 'go version' print?
go version go1.3beta2 +5bf1a8b3aeea Thu May 29 13:47:31 2014 -0400 darwin/amd64

What steps reproduce the problem?
If possible, include a link to a program on play.golang.org.

1. run this code: http://play.golang.org/p/hxuIOC49ac

What happened?
A quarter to a half of the requests have errors such as:
- http: can't write HTTP request on broken connection
- Get http://www.adobe.com/nz/nz-sitemap.xml: EOF

What should have happened instead?
All get requests should succeed

Please provide any additional information below.
If you put a 1 second sleep between each request they all succeed

I looked for possibly related issues and this and found these that seem to be related:
https://golang.org/issue/4677
https://golang.org/issue/3514
@bradfitz
Copy link
Contributor

Comment 1:

Yes, this is a dup of 4677

Status changed to Duplicate.

Merged into issue #4677.

@golang golang locked and limited conversation to collaborators Jun 25, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants