gh-153133: Fix socket leak in asyncio create_connection - #153134
Conversation
|
Thanks @deadlovelll for the PR, and @kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.15. |
|
Thanks @deadlovelll for the PR, and @kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14. |
|
Sorry, @deadlovelll and @kumaraditya303, I could not cleanly backport this to |
|
GH-154631 is a backport of this pull request to the 3.15 branch. |
|
@deadlovelll Would you like to have a go at the backports? |
Yes, of course, I'll take a look sometime today |
|
GH-154897 is a backport of this pull request to the 3.14 branch. |
Close the socket in
_create_connection_transport()when the transport is never created, not only on await failureFor more details see gh-153133