]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix broken link to MSDN (#102355)
author谭九鼎 <109224573@qq.com>
Mon, 13 Mar 2023 13:15:52 +0000 (21:15 +0800)
committerGitHub <noreply@github.com>
Mon, 13 Mar 2023 13:15:52 +0000 (15:15 +0200)
Lib/socket.py
Lib/test/support/socket_helper.py

index 3a4f94de9cc03a987eda641152e286b9d1546ea6..321fcda51505c18d36d5a51e6d51e4170fb25bc3 100644 (file)
@@ -910,7 +910,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 d2960c9e333474337edac2bfc9ea3ceda7071361..78409238db8954de2d5ce709aa039526555d652e 100644 (file)
@@ -63,7 +63,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