|
@gpshead (as a committer into Lib/http/client.py) |
Sorry, something went wrong.
There was a problem hiding this comment.
This piece of code has been there for a while, so making changes here for intermittent failure seems to require bit more understanding on the nature of the error.
Sorry, something went wrong.
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request. |
Sorry, something went wrong.
|
I have made the requested changes; please review again |
Sorry, something went wrong.
|
Thanks for making the requested changes! @orsenthil: please review the changes made to this pull request. |
Sorry, something went wrong.
|
I have made the requested changes; please review again Did you push any commits? I don't see it. |
Sorry, something went wrong.
|
@orsenthil I responded to your comments I didn't need to make any changes |
Sorry, something went wrong.
|
overall, having tried to review the http.client logic in depth, I think what you're doing in this PR makes sense. Our http.client code is... quite complicated. As you noted, it is the HTTPResponse sock.makefile() having a side "copy" of the socket as a file object that makes always calling response.close() not mess things up in the _tunnel() case. ("Closing the file object returned by makefile() won’t close the original socket unless all other file objects have been closed and socket.close() has been called on the socket object." - socket docs) |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM too. Thank you.
Sorry, something went wrong.
|
Thanks @graingert for the PR, and @gpshead for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
Sorry, something went wrong.
|
GH-104077 is a backport of this pull request to the 3.11 branch. |
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.