You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An http.Client fails to download files with this error:
use of closed network connection
Debugging the issue shows that indeed the net/http package is sending a RST packet while
the remote side is still delivering data, so apparently the connection is being locally
closed.
The text was updated successfully, but these errors were encountered:
The 1.0.2 package that was shipped in Debian and Ubuntu has a cherry-picked patch from
the development tree due to this issue:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=683421
Someone got the patch from here:
https://golang.org/cl/6201044
Unfortunately, though, that patch was broken. Right after submission
there's a comment saying:
This code breaks Client.Get() on non-persistent ("Connection: close")
connections. Response.Body returns error("use of closed network
connection").
And a patch to fix that immediately followed in a different CL:
https://golang.org/cl/6211069
That didn't make into the Debian package for several months, which means http GETs have
been broken there and in Ubuntu for that time.
The text was updated successfully, but these errors were encountered: