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: Response.Body.Read: use of closed network connection #3643

Closed
cookieo9 opened this issue May 19, 2012 · 1 comment
Closed

net/http: Response.Body.Read: use of closed network connection #3643

cookieo9 opened this issue May 19, 2012 · 1 comment

Comments

@cookieo9
Copy link
Contributor

What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
1. Use http.Get() to connect to a site which closes keep-alives
2. Read from response

What is the expected output?
Contents of page.

What do you see instead?
error: use of closed network connection


Which compiler are you using (5g, 6g, 8g, gccgo)?
8g


Which operating system are you using?
Darwin x86-32


Which version are you using?  (run 'go version')
go version weekly.2012-03-27 +85e153815747 (tip)

Please provide any additional information below.
The issue doesn't happen in go1.0.1, and seems to be the result of
http://golang.org/cl/6201044 made to fix issue #1967.

Attachments:

  1. foo.go (726 bytes)
@bradfitz
Copy link
Contributor

Comment 1:

Fixed by http://code.google.com/p/go/source/detail?r=c3cbd6798c

Status changed to Fixed.

@golang golang locked and limited conversation to collaborators Jun 24, 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