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 fails with "use of closed network connection" on some servers #4704
Labels
Milestone
Comments
I haven't tested on 1.0.3, I will tonight. One of the users in this thread reported the bug occurring in 1.0.3, though: https://groups.google.com/d/msg/golang-nuts/_DA71u569uw/jGpIssYwznUJ |
I haven't tested on 1.0.3. I'll test on 1.0.3 and on the current bleeding edge tonight. One of the users in this thread reported the bug occurring in 1.0.3, though: https://groups.google.com/d/msg/golang-nuts/_DA71u569uw/jGpIssYwznUJ |
lucky(~/src) % hg id $GOROOT 45a405b5c63a+ tip lucky(~/src) % go run get.go &http.Response{Status:"200 OK", StatusCode:200, Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"Vary":[]string{"Accept-Charset, Accept-Encoding, Accept-Language, Accept"}, "Content-Type":[]string{"text/html"}, "Server":[]string{"Noelios-Restlet-Engine/1.1.6-SONATYPE-5348-V4"}, "Date":[]string{"Fri, 25 Jan 2013 10:40:50 GMT", "Fri, 25 Jan 2013 10:40:50 GMT"}}, Body:(*http.bodyEOFSignal)(0xc20008e8c0), ContentLength:-1, TransferEncoding:[]string(nil), Close:true, Trailer:http.Header(nil), Request:(*http.Request)(0xc2000ad1a0)} &http.Request{Method:"GET", URL:(*url.URL)(0xc200079310), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{}, Body:io.ReadCloser(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"repo.bukkit.org", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil)} |
I can't reproduce in go 1.0.3. meyer@meter:~/Code/golang/go$ hg id 2d8bc3c94ecb (release-branch.go1) go1.0.3/release meyer@meter:~/Code/golang/go$ ./bin/go get -x mini WORK=/tmp/go-build936265783 mkdir -p $WORK/mini/_obj/ cd /home/meyer/Code/go/src/mini /home/meyer/Code/golang/go/pkg/tool/linux_amd64/6g -o $WORK/mini/_obj/_go_.6 -p mini -D _/home/meyer/Code/go/src/mini -I $WORK ./mini.go /home/meyer/Code/golang/go/pkg/tool/linux_amd64/pack grcP $WORK $WORK/mini.a $WORK/mini/_obj/_go_.6 cd . /home/meyer/Code/golang/go/pkg/tool/linux_amd64/6l -o $WORK/mini/_obj/a.out -L $WORK $WORK/mini.a mkdir -p /home/meyer/Code/go/bin/ cp $WORK/mini/_obj/a.out /home/meyer/Code/go/bin/mini meyer@meter:~/Code/golang/go$ $GOPATH/bin/mini Sorry for the unnecessary bug report, and keep up the good work! |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by meyermagic:
Attachments:
The text was updated successfully, but these errors were encountered: