Skip to content

gh-146139: Disable socketpair authentication on WASI#146140

Open
dicej wants to merge 1 commit intopython:mainfrom
dicej:disable-sockepair-auth-on-wasi
Open

gh-146139: Disable socketpair authentication on WASI#146140
dicej wants to merge 1 commit intopython:mainfrom
dicej:disable-sockepair-auth-on-wasi

Conversation

@dicej
Copy link

@dicej dicej commented Mar 18, 2026

Calling connect(2) on a non-blocking socket on WASI may leave the socket in a "connecting" but not yet "connected" state. In the former case, calling getpeername(2) on it will fail, leading to an unhandled exception in Python.

Calling `connect(2)` on a non-blocking socket on WASI may leave the socket in a
"connecting" but not yet "connected" state.  In the former case, calling
`getpeername(2)` on it will fail, leading to an unhandled exception in Python.
@bedevere-app
Copy link

bedevere-app bot commented Mar 18, 2026

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

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

@python-cla-bot
Copy link

The following commit authors need to sign the Contributor License Agreement:

CLA not signed

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

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

LGTM

raise
#
# Note that we skip this on WASI because on that platorm the client socket
# may not have finished connecting by the time we've reached this point.
Copy link
Member

Choose a reason for hiding this comment

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

Maybe refer to the issue:

Suggested change
# may not have finished connecting by the time we've reached this point.
# may not have finished connecting by the time we've reached this point (gh-146139).

@vstinner
Copy link
Member

@dicej: You should sign the Python CLA: #146140 (comment).

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.

2 participants