-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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: Client can't close HTTP stream. #3672
Labels
Milestone
Comments
Labels changed: removed priority-triage. Owner changed to @bradfitz. Status changed to Accepted. |
So, it seems like the right thing to do here is eliminate the call to io.Copy(ioutil.Discard, b) in transfer.go, right? Seems like the only reasonable alternative is to set a timeout and return from Close if the discard operation doesn't complete in some reasonable amount of time. I understand that failing to consume a response body would be really bad, esp wrt to connection pooling, so it's tough to tell what the right thing to do here is. |
I've mailed out https://golang.org/cl/7419050 Please test it. Status changed to Started. |
This issue was closed by revision ce83415. Status changed to Fixed. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: