@@ -495,7 +495,7 @@ Opening network connections
495
495
496
496
.. versionchanged :: 3.6
497
497
498
- The socket option :py:const: ` ~ socket.TCP_NODELAY ` is set by default
498
+ The socket option :ref: ` socket.TCP_NODELAY < socket-unix-constants > ` is set by default
499
499
for all TCP connections.
500
500
501
501
.. versionchanged :: 3.7
@@ -564,7 +564,7 @@ Opening network connections
564
564
* *reuse_port * tells the kernel to allow this endpoint to be bound to the
565
565
same port as other existing endpoints are bound to, so long as they all
566
566
set this flag when being created. This option is not supported on Windows
567
- and some Unixes. If the :py:const: ` ~ socket.SO_REUSEPORT ` constant is not
567
+ and some Unixes. If the :ref: ` socket.SO_REUSEPORT < socket-unix-constants > ` constant is not
568
568
defined then this capability is unsupported.
569
569
570
570
* *allow_broadcast * tells the kernel to allow this endpoint to send
@@ -590,7 +590,8 @@ Opening network connections
590
590
591
591
.. versionchanged :: 3.8.1
592
592
The *reuse_address * parameter is no longer supported, as using
593
- :py:const: `~sockets.SO_REUSEADDR ` poses a significant security concern for
593
+ :ref: `socket.SO_REUSEADDR <socket-unix-constants >`
594
+ poses a significant security concern for
594
595
UDP. Explicitly passing ``reuse_address=True `` will raise an exception.
595
596
596
597
When multiple processes with differing UIDs assign sockets to an
@@ -599,7 +600,8 @@ Opening network connections
599
600
600
601
For supported platforms, *reuse_port * can be used as a replacement for
601
602
similar functionality. With *reuse_port *,
602
- :py:const: `~sockets.SO_REUSEPORT ` is used instead, which specifically
603
+ :ref: `socket.SO_REUSEPORT <socket-unix-constants >`
604
+ is used instead, which specifically
603
605
prevents processes with differing UIDs from assigning sockets to the same
604
606
socket address.
605
607
@@ -741,7 +743,7 @@ Creating network servers
741
743
.. versionchanged :: 3.6
742
744
743
745
Added *ssl_handshake_timeout * and *start_serving * parameters.
744
- The socket option :py:const: ` ~ socket.TCP_NODELAY ` is set by default
746
+ The socket option :ref: ` socket.TCP_NODELAY < socket-unix-constants > ` is set by default
745
747
for all TCP connections.
746
748
747
749
.. versionchanged :: 3.11
@@ -1853,7 +1855,7 @@ Set signal handlers for SIGINT and SIGTERM
1853
1855
1854
1856
(This ``signals `` example only works on Unix.)
1855
1857
1856
- Register handlers for signals :py:data: ` SIGINT ` and :py:data: ` SIGTERM `
1858
+ Register handlers for signals :const: ` ~signal. SIGINT ` and :const: ` ~signal. SIGTERM `
1857
1859
using the :meth: `loop.add_signal_handler ` method::
1858
1860
1859
1861
import asyncio
0 commit comments