Skip to content

net/http: Consecutive Get requests in quick succession sometimes fail when remote server closes connection after responding with keep-alive #8122

Closed
@cgilling

Description

@cgilling
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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions