Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
lunixbochs wants to merge1 commit intopython:main
base:main
Choose a base branch
Loading
fromlunixbochs:gh-130141

Conversation

lunixbochs
Copy link
Contributor

@lunixbochslunixbochs commentedFeb 15, 2025
edited by bedevere-appbot
Loading

aligns the SelectorTransport __del__ implementation with force_closealso sets sock_fd to -1 when closing the socket so stale fds can't bereused
@lunixbochslunixbochs changed the titlegh-130141: mark _SelectorTransport as closing during delgh-130141: clean up asyncio._SelectorTransport during __del__Feb 19, 2025
self._sock = None

self._protocol = None
self._loop = None
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the reason for setting loop to None?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

self._loop._remove_writer(self._sock_fd)
self._conn_lost += 1
Copy link
Contributor

Choose a reason for hiding this comment

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

Why this change?

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

@kumaraditya303kumaraditya303kumaraditya303 left review comments

@1st11st1Awaiting requested review from 1st11st1 is a code owner

@asvetlovasvetlovAwaiting requested review from asvetlovasvetlov is a code owner

@willingcwillingcAwaiting requested review from willingcwillingc is a code owner

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@lunixbochs@kumaraditya303@ZeroIntensity

[8]ページ先頭

©2009-2025 Movatter.jp