Skip to content

[3.13] gh-146139: Disable socketpair authentication on WASI (GH-146140)#148527

Merged
vstinner merged 1 commit intopython:3.13from
miss-islington:backport-a5b76d5-3.13
Apr 13, 2026
Merged

[3.13] gh-146139: Disable socketpair authentication on WASI (GH-146140)#148527
vstinner merged 1 commit intopython:3.13from
miss-islington:backport-a5b76d5-3.13

Conversation

@miss-islington
Copy link
Copy Markdown
Contributor

@miss-islington miss-islington commented Apr 13, 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.
(cherry picked from commit a5b76d5)

Co-authored-by: Joel Dice joel.dice@akamai.com
Co-authored-by: Victor Stinner vstinner@python.org
Co-authored-by: Brett Cannon brett@python.org

…H-146140)

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.
(cherry picked from commit a5b76d5)

Co-authored-by: Joel Dice <joel.dice@akamai.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Brett Cannon <brett@python.org>
@vstinner vstinner enabled auto-merge (squash) April 13, 2026 21:15
@vstinner vstinner merged commit d82c491 into python:3.13 Apr 13, 2026
42 checks passed
@miss-islington miss-islington deleted the backport-a5b76d5-3.13 branch April 13, 2026 21:30
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.

3 participants