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-111246: Remove listening Unix socket on close#111483

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

Merged
gvanrossum merged 6 commits intopython:mainfromCendioOssman:unix_cleanup
Nov 8, 2023

Conversation

CendioOssman
Copy link
Contributor

@CendioOssmanCendioOssman commentedOct 30, 2023
edited by github-actionsbot
Loading

Relieve developers from the burden of manually cleaning up their Unix sockets by having asyncio take care of that internally.

Fixes#111246.


📚 Documentation preview 📚:https://cpython-previews--111483.org.readthedocs.build/

@ghost
Copy link

ghost commentedOct 30, 2023
edited by ghost
Loading

All commit authors signed the Contributor License Agreement.
CLA signed

@bedevere-app
Copy link

Most changes to Pythonrequire a NEWS entry. Add one using theblurb_it web app or theblurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply theskip news label instead.

Try to clean up the socket file we create so we don't add unused noiseto the file system.
We only want to clean up *our* socket, so try to determine if we stillown this address or if something else has replaced it.
Allow the implicit cleanup to be disabled in case there are some oddcorner cases where this causes issues.
@gvanrossum
Copy link
Member

Once review has started (now) please don't force-push -- just add additional commits, otherwise review will be more work. We'll squash merge the final approved PR anyway. Also, merging main is usually not needed (GitHub is a bit pushy around that).

@CendioOssman
Copy link
ContributorAuthor

Ah, sorry. I'm used to the Linux kernel model where you churn the patch set until you have a history everyone is happy with. :)

I guess that means my careful splitting into distinct features wasn't necessary either. :)

FYI, the CLA is in progress via the slower organization route.

Copy link
Member

@gvanrossumgvanrossum left a comment

Choose a reason for hiding this comment

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

LG, two nits. Thanks for helping out!

@@ -147,6 +149,74 @@ async def serve(*args):
await task2


class UnixServerCleanupTests(unittest.IsolatedAsyncioTestCase):
@socket_helper.skip_unless_bind_unix_socket
async def test_unix_server_addr_cleanup(self):
Copy link
Member

Choose a reason for hiding this comment

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

Would you mind adding one-line comments to the new tests explaining what each test checks? They look so similar I first thought you had accidentally copied the test a few times. :-)

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Sure. A commit with comments have been pushed.

Copy link
Member

@gvanrossumgvanrossum left a comment

Choose a reason for hiding this comment

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

Thanks!

@gvanrossum
Copy link
Member

@CendioOssman Could you sign the CLA please so we can merge?

@CendioOssman
Copy link
ContributorAuthor

It was signed last Tuesday, so it should hopefully be in someone's queue. I got a confirmation from Adobe at least.

@gvanrossum
Copy link
Member

It was signed last Tuesday, so it should hopefully be in someone's queue. I got a confirmation from Adobe at least.

Okay, I'll wait a bit for our side to update the database then.

@ambv
Copy link
Contributor

ambv commentedNov 7, 2023

@CendioOssman, in the case of corporate CLAs we still need you to click through the personal CLA signing route to mark your email as green. We don't use blanket email domain approvals.

@CendioOssman
Copy link
ContributorAuthor

Ah. The link said I should use the manual form "instead", so I never proceeded with the GitHub form.

I've clicked through the personal approval as well now.

gvanrossum reacted with thumbs up emoji

@gvanrossumgvanrossum merged commit74b868f intopython:mainNov 8, 2023
aisk pushed a commit to aisk/cpython that referenced this pull requestFeb 11, 2024
Try to clean up the socket file we create so we don't add unused noise to the file system.
@CendioOssmanCendioOssman deleted the unix_cleanup branchFebruary 28, 2024 10:51
fantix added a commit to MagicStack/uvloop that referenced this pull requestAug 28, 2024
This is derived frompython/cpython#111483 but available onall Python versions with uvloop, only that it's only enabledby default for Python 3.13 and above to be consistent withCPython behavior.
Glyphack pushed a commit to Glyphack/cpython that referenced this pull requestSep 2, 2024
Try to clean up the socket file we create so we don't add unused noise to the file system.
fantix added a commit to MagicStack/uvloop that referenced this pull requestSep 2, 2024
This is derived frompython/cpython#111483 but available onall Python versions with uvloop, only that it's only enabledby default for Python 3.13 and above to be consistent withCPython behavior.* Also add Python 3.13 to CI (#610)* Enable CI in debug mode* Fix CI to include [dev]---------Co-authored-by: Fantix King <fantix.king@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@kumaraditya303kumaraditya303kumaraditya303 left review comments

@gvanrossumgvanrossumgvanrossum approved these changes

@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
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Listening asyncio UNIX socket isn't removed on close
4 participants
@CendioOssman@gvanrossum@ambv@kumaraditya303

[8]ページ先頭

©2009-2025 Movatter.jp