From a9a1c501d321b4f275bd19ec55922fb1c14fabd8 Mon Sep 17 00:00:00 2001 From: GalaxySnail Date: Sat, 31 May 2025 11:23:28 +0800 Subject: [PATCH 1/2] {send,recv}_fds are not supported on Windows fix e3b6ff19aaa318a813130ba9ad2ab0a332f27feb --- Doc/library/socket.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst index 75fd637045d7d8..07c8b2f9423f57 100644 --- a/Doc/library/socket.rst +++ b/Doc/library/socket.rst @@ -1492,7 +1492,7 @@ The :mod:`socket` module also offers various network-related services: The *fds* parameter is a sequence of file descriptors. Consult :meth:`~socket.sendmsg` for the documentation of these parameters. - .. availability:: Unix, Windows, not WASI. + .. availability:: Unix, not WASI. Unix platforms supporting :meth:`~socket.sendmsg` and :const:`SCM_RIGHTS` mechanism. @@ -1506,7 +1506,7 @@ The :mod:`socket` module also offers various network-related services: Return ``(msg, list(fds), flags, addr)``. Consult :meth:`~socket.recvmsg` for the documentation of these parameters. - .. availability:: Unix, Windows, not WASI. + .. availability:: Unix, not WASI. Unix platforms supporting :meth:`~socket.sendmsg` and :const:`SCM_RIGHTS` mechanism. From 6e72036d14d1e02b5b0e48327e31be540c74f0ee Mon Sep 17 00:00:00 2001 From: GalaxySnail Date: Sat, 31 May 2025 11:30:27 +0800 Subject: [PATCH 2/2] `recv_fds` requires `recvmsg` --- Doc/library/socket.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst index 07c8b2f9423f57..bc89a3228f0ed9 100644 --- a/Doc/library/socket.rst +++ b/Doc/library/socket.rst @@ -1508,7 +1508,7 @@ The :mod:`socket` module also offers various network-related services: .. availability:: Unix, not WASI. - Unix platforms supporting :meth:`~socket.sendmsg` + Unix platforms supporting :meth:`~socket.recvmsg` and :const:`SCM_RIGHTS` mechanism. .. versionadded:: 3.9