]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-84808: socket.connect_ex: Handle negative errno (GH-122304)
authorJérôme Duval <jerome.duval@gmail.com>
Mon, 9 Sep 2024 14:59:13 +0000 (16:59 +0200)
committerGitHub <noreply@github.com>
Mon, 9 Sep 2024 14:59:13 +0000 (14:59 +0000)
commit65fcaa38ada727b504ec60ae283caf8e3ebbb845
treed6fedb45c26b61a463ab4806c8715998c24fbd81
parentd8f3c1e8f9c384fa6a473c3923f3b26ad6257cac
gh-84808: socket.connect_ex: Handle negative errno (GH-122304)

POSIX allows errno to be negative.
Even though all currently supported platforms have non-negative errno,
relying on a quirk like that would make Python less portable.
Misc/NEWS.d/next/Library/2024-09-06-10-17-54.gh-issue-84808.ION67Z.rst [new file with mode: 0644]
Modules/socketmodule.c