summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorJérôme Duval <jerome.duval@gmail.com>2024-09-09 14:59:13 (GMT)
committerGitHub <noreply@github.com>2024-09-09 14:59:13 (GMT)
commit65fcaa38ada727b504ec60ae283caf8e3ebbb845 (patch)
treed6fedb45c26b61a463ab4806c8715998c24fbd81 /Misc
parentd8f3c1e8f9c384fa6a473c3923f3b26ad6257cac (diff)
downloadcpython-65fcaa38ada727b504ec60ae283caf8e3ebbb845.zip
cpython-65fcaa38ada727b504ec60ae283caf8e3ebbb845.tar.gz
cpython-65fcaa38ada727b504ec60ae283caf8e3ebbb845.tar.bz2
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.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2024-09-06-10-17-54.gh-issue-84808.ION67Z.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2024-09-06-10-17-54.gh-issue-84808.ION67Z.rst b/Misc/NEWS.d/next/Library/2024-09-06-10-17-54.gh-issue-84808.ION67Z.rst
new file mode 100644
index 0000000..c804c59
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2024-09-06-10-17-54.gh-issue-84808.ION67Z.rst
@@ -0,0 +1,3 @@
+Fix error handling in :py:class:`~socket.socket` method
+:py:func:`~socket.socket.connect_ex` on platforms where
+:c:data:`errno` can be negative.