Thanks to visit codestin.com
Credit goes to github.com

Skip to content

gh-130141: clean up asyncio._SelectorTransport during __del__ #130142

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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