]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-148599: Update WSA `socket` error codes (#148033)
authorAlexis Dauphin <alexis.dauphin91@gmail.com>
Wed, 6 May 2026 17:52:23 +0000 (19:52 +0200)
committerGitHub <noreply@github.com>
Wed, 6 May 2026 17:52:23 +0000 (19:52 +0200)
Lib/socket.py
Misc/NEWS.d/next/Library/2026-04-15-09-36-03.gh-issue-148599.90i1Ku.rst [new file with mode: 0644]

index 34d897a82edd4fb6b42c6ec8bd53a1f5cadae72f..03c3fe88f15cfe6916a7275ceab2000a20e4be0b 100644 (file)
@@ -123,7 +123,7 @@ if sys.platform.lower().startswith("win"):
         10004: "The operation was interrupted.",
         10009: "A bad file handle was passed.",
         10013: "Permission denied.",
-        10014: "A fault occurred on the network??",
+        10014: "An invalid pointer was passed.",
         10022: "An invalid operation was attempted.",
         10024: "Too many open files.",
         10035: "The socket operation would block.",
@@ -181,7 +181,7 @@ if sys.platform.lower().startswith("win"):
         11001: "Host not found.",
         11002: "Nonauthoritative host not found.",
         11003: "This is a nonrecoverable error.",
-        11004: "Valid name, no data record requested type.",
+        11004: "Valid name, no data record of requested type.",
         11005: "QoS receivers.",
         11006: "QoS senders.",
         11007: "No QoS senders.",
@@ -197,7 +197,7 @@ if sys.platform.lower().startswith("win"):
         11017: "QoS flowspec error.",
         11018: "Invalid QoS provider buffer.",
         11019: "Invalid QoS filter style.",
-        11020: "Invalid QoS filter style.",
+        11020: "Invalid QoS filter type.",
         11021: "Incorrect QoS filter count.",
         11022: "Invalid QoS object length.",
         11023: "Incorrect QoS flow count.",
diff --git a/Misc/NEWS.d/next/Library/2026-04-15-09-36-03.gh-issue-148599.90i1Ku.rst b/Misc/NEWS.d/next/Library/2026-04-15-09-36-03.gh-issue-148599.90i1Ku.rst
new file mode 100644 (file)
index 0000000..eb76b33
--- /dev/null
@@ -0,0 +1 @@
+Update the :mod:`socket` module's WSA error messages to match official documentation.