Skip to content

Commit 5e10479

Browse files
Fix broken link to MSDN (GH-102355)
(cherry picked from commit 9a8b66b) Co-authored-by: 谭九鼎 <109224573@qq.com>
1 parent a01ad52 commit 5e10479

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Lib/socket.py

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

Lib/test/support/socket_helper.py

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

0 commit comments

Comments
 (0)