]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix broken link to MSDN (GH-102355)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 13 Mar 2023 13:42:30 +0000 (06:42 -0700)
committerGitHub <noreply@github.com>
Mon, 13 Mar 2023 13:42:30 +0000 (06:42 -0700)
(cherry picked from commit 9a8b66b58c74236959a01d579e2c156d9c2e7cb3)

Co-authored-by: 谭九鼎 <109224573@qq.com>
Lib/socket.py
Lib/test/support/socket_helper.py

index 5a896bee7c49bb6ec4da3e0e3af2cf20ea9db06f..b5d46eb32bda3ba2131ee83751141de5904ede48 100644 (file)
@@ -909,7 +909,7 @@ def create_server(address, *, family=AF_INET, backlog=None, reuse_port=False,
         # address, effectively preventing this one from accepting
         # connections. Also, it may set the process in a state where
         # it'll no longer respond to any signals or graceful kills.
-        # See: msdn2.microsoft.com/en-us/library/ms740621(VS.85).aspx
+        # See: https://learn.microsoft.com/windows/win32/winsock/using-so-reuseaddr-and-so-exclusiveaddruse
         if os.name not in ('nt', 'cygwin') and \
                 hasattr(_socket, 'SO_REUSEADDR'):
             try:
index 42b2a93398cbf731ca5b4ea16fcef079fbd02a21..50e1d4d56c9b20c099429151a7c02b8818d52f29 100644 (file)
@@ -61,7 +61,7 @@ def find_unused_port(family=socket.AF_INET, socktype=socket.SOCK_STREAM):
     http://bugs.python.org/issue2550 for more info.  The following site also
     has a very thorough description about the implications of both REUSEADDR
     and EXCLUSIVEADDRUSE on Windows:
-    http://msdn2.microsoft.com/en-us/library/ms740621(VS.85).aspx)
+    https://learn.microsoft.com/windows/win32/winsock/using-so-reuseaddr-and-so-exclusiveaddruse
 
     XXX: although this approach is a vast improvement on previous attempts to
     elicit unused ports, it rests heavily on the assumption that the ephemeral