]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-146139: Disable `socketpair` authentication on WASI (#146140)
authorJoel Dice <joel.dice@akamai.com>
Mon, 13 Apr 2026 21:06:36 +0000 (15:06 -0600)
committerGitHub <noreply@github.com>
Mon, 13 Apr 2026 21:06:36 +0000 (21:06 +0000)
commita5b76d53bb29afd864243f44ef22968f6385dfa0
tree41d80bd72184a9704b821e59240315a8226665bb
parentd22922c8a7958353689dc4763dd72da2dea03fff
gh-146139: Disable `socketpair` authentication on WASI (#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.

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Brett Cannon <brett@python.org>
Lib/socket.py