mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Fix broken link to MSDN (#102355)
This commit is contained in:
parent
233e32f936
commit
9a8b66b58c
2 changed files with 2 additions and 2 deletions
|
@ -910,7 +910,7 @@ def create_server(address, *, family=AF_INET, backlog=None, reuse_port=False,
|
||||||
# address, effectively preventing this one from accepting
|
# address, effectively preventing this one from accepting
|
||||||
# connections. Also, it may set the process in a state where
|
# connections. Also, it may set the process in a state where
|
||||||
# it'll no longer respond to any signals or graceful kills.
|
# 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 \
|
if os.name not in ('nt', 'cygwin') and \
|
||||||
hasattr(_socket, 'SO_REUSEADDR'):
|
hasattr(_socket, 'SO_REUSEADDR'):
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -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
|
http://bugs.python.org/issue2550 for more info. The following site also
|
||||||
has a very thorough description about the implications of both REUSEADDR
|
has a very thorough description about the implications of both REUSEADDR
|
||||||
and EXCLUSIVEADDRUSE on Windows:
|
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
|
XXX: although this approach is a vast improvement on previous attempts to
|
||||||
elicit unused ports, it rests heavily on the assumption that the ephemeral
|
elicit unused ports, it rests heavily on the assumption that the ephemeral
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue