Skip to content

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

Closed
@cookieo9

Description

@cookieo9
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)

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