Skip to content

Commit 9a8b66b

Browse files
authored
Fix broken link to MSDN (#102355)
1 parent 233e32f commit 9a8b66b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Lib/socket.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ def create_server(address, *, family=AF_INET, backlog=None, reuse_port=False,
910910
# address, effectively preventing this one from accepting
911911
# connections. Also, it may set the process in a state where
912912
# it'll no longer respond to any signals or graceful kills.
913-
# See: msdn2.microsoft.com/en-us/library/ms740621(VS.85).aspx
913+
# See: https://learn.microsoft.com/windows/win32/winsock/using-so-reuseaddr-and-so-exclusiveaddruse
914914
if os.name not in ('nt', 'cygwin') and \
915915
hasattr(_socket, 'SO_REUSEADDR'):
916916
try:

Lib/test/support/socket_helper.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def find_unused_port(family=socket.AF_INET, socktype=socket.SOCK_STREAM):
6363
http://bugs.python.org/issue2550 for more info. The following site also
6464
has a very thorough description about the implications of both REUSEADDR
6565
and EXCLUSIVEADDRUSE on Windows:
66-
http://msdn2.microsoft.com/en-us/library/ms740621(VS.85).aspx)
66+
https://learn.microsoft.com/windows/win32/winsock/using-so-reuseaddr-and-so-exclusiveaddruse
6767
6868
XXX: although this approach is a vast improvement on previous attempts to
6969
elicit unused ports, it rests heavily on the assumption that the ephemeral

0 commit comments

Comments
 (0)