-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[question] Drain up to 512 bytes and close the body to let the Transport reuse the connection #843
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
Comments
@diorahman I see that we support 1.7.x version as well. Since which version are these lines of code redundant? |
Looks like it was introduced in 1.7, so should be safe to remove: golang/go@18072ad |
Cool, thanks for checking @willnorris. Thanks for reporting, @diorahman. Would you like to send a PR to remove these lines? If not, I'll go ahead and remove. |
The behavior on connection reuse is introduced in golang/go@18072ad. Fixes google#843
I have submitted a PR. Sorry for a bit funky event above hehe. Need to change account due to CLA. |
The behavior on connection reuse without manually draining resp.Body is introduced in golang/go@18072ad. Fixes google#843
Hi, do you think we still need following lines today (with current and newer golang version)?
https://github.com/google/go-github/blob/master/github/github.go#L481-L485
Thanks!
The text was updated successfully, but these errors were encountered: