Skip to content

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

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

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

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 592c68c into python:3.14 Apr 13, 2026
50 checks passed
@miss-islington miss-islington deleted the backport-a5b76d5-3.14 branch April 13, 2026 21:34
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