Skip to content

Conversation

@lunixbochs
Copy link
Contributor

@lunixbochs lunixbochs commented Feb 15, 2025

aligns the SelectorTransport __del__ implementation with force_close
also sets sock_fd to -1 when closing the socket so stale fds can't be
reused
@lunixbochs lunixbochs changed the title gh-130141: mark _SelectorTransport as closing during del gh-130141: clean up asyncio._SelectorTransport during __del__ Feb 19, 2025
@gvanrossum gvanrossum changed the title gh-130141: clean up asyncio._SelectorTransport during __del__ gh-130141: clean up asyncio._SelectorTransport during __del__ Jun 12, 2025
Copy link
Member

@gvanrossum gvanrossum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM, but I would still like to see a test that proves it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants