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
[PR #10656/06db052e backport][3.11] Revert: Close the socket if there's a failure in start_connection() #10464 (#10657)
**This is a backport of PR #10656 as merged into master
(06db052).**
Reverts #10464
While this change improved the situation for uvloop users, it caused a
regression with `SelectorEventLoop` (issue #10617)
The alternative fix is MagicStack/uvloop#646
(not merged at the time of this PR)
issue #10617 appears to be very similar to
python/cpython@d5aeccf
If someone can come up with a working reproducer for #10617 we can
revisit this.
cc @top-oai
Minimal implementation that shows on cancellation the socket is cleaned
up without the explicit `close`
#10617 (comment)
so this should be unneeded unless I've missed something (very possible
with all the moving parts here)
## Related issue number
fixes#10617
Co-authored-by: J. Nick Koston <[email protected]>
0 commit comments