@@ -509,7 +509,7 @@ Opening network connections
509
509
510
510
.. versionchanged :: 3.6
511
511
512
- The socket option :py:const: ` ~ socket.TCP_NODELAY ` is set by default
512
+ The socket option :ref: ` socket.TCP_NODELAY < socket-unix-constants > ` is set by default
513
513
for all TCP connections.
514
514
515
515
.. versionchanged :: 3.7
@@ -581,7 +581,7 @@ Opening network connections
581
581
* *reuse_port * tells the kernel to allow this endpoint to be bound to the
582
582
same port as other existing endpoints are bound to, so long as they all
583
583
set this flag when being created. This option is not supported on Windows
584
- and some Unixes. If the :py:const: ` ~ socket.SO_REUSEPORT ` constant is not
584
+ and some Unixes. If the :ref: ` socket.SO_REUSEPORT < socket-unix-constants > ` constant is not
585
585
defined then this capability is unsupported.
586
586
587
587
* *allow_broadcast * tells the kernel to allow this endpoint to send
@@ -607,7 +607,8 @@ Opening network connections
607
607
608
608
.. versionchanged :: 3.8.1
609
609
The *reuse_address * parameter is no longer supported, as using
610
- :py:const: `~sockets.SO_REUSEADDR ` poses a significant security concern for
610
+ :ref: `socket.SO_REUSEADDR <socket-unix-constants >`
611
+ poses a significant security concern for
611
612
UDP. Explicitly passing ``reuse_address=True `` will raise an exception.
612
613
613
614
When multiple processes with differing UIDs assign sockets to an
@@ -616,7 +617,8 @@ Opening network connections
616
617
617
618
For supported platforms, *reuse_port * can be used as a replacement for
618
619
similar functionality. With *reuse_port *,
619
- :py:const: `~sockets.SO_REUSEPORT ` is used instead, which specifically
620
+ :ref: `socket.SO_REUSEPORT <socket-unix-constants >`
621
+ is used instead, which specifically
620
622
prevents processes with differing UIDs from assigning sockets to the same
621
623
socket address.
622
624
@@ -758,7 +760,7 @@ Creating network servers
758
760
.. versionchanged :: 3.6
759
761
760
762
Added *ssl_handshake_timeout * and *start_serving * parameters.
761
- The socket option :py:const: ` ~ socket.TCP_NODELAY ` is set by default
763
+ The socket option :ref: ` socket.TCP_NODELAY < socket-unix-constants > ` is set by default
762
764
for all TCP connections.
763
765
764
766
.. versionchanged :: 3.11
@@ -1896,7 +1898,7 @@ Set signal handlers for SIGINT and SIGTERM
1896
1898
1897
1899
(This ``signals `` example only works on Unix.)
1898
1900
1899
- Register handlers for signals :py:data: ` SIGINT ` and :py:data: ` SIGTERM `
1901
+ Register handlers for signals :const: ` ~signal. SIGINT ` and :const: ` ~signal. SIGTERM `
1900
1902
using the :meth: `loop.add_signal_handler ` method::
1901
1903
1902
1904
import asyncio
0 commit comments