]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-146139: Disable `socketpair` authentication on WASI (GH-146140) (#148526)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 13 Apr 2026 21:34:06 +0000 (23:34 +0200)
committerGitHub <noreply@github.com>
Mon, 13 Apr 2026 21:34:06 +0000 (21:34 +0000)
commit592c68cf6b1bea936d42eb694ee17e0bbd76008c
tree63fa055cbf4a9eb1b8a76b25d7b2c503ea46bf17
parent0b9332bc05eadfd619111bdef53bb151dc6ef2b9
[3.14] gh-146139: Disable `socketpair` authentication on WASI (GH-146140) (#148526)

gh-146139: Disable `socketpair` authentication on WASI (GH-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 a5b76d53bb29afd864243f44ef22968f6385dfa0)

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>
Lib/socket.py