diff options
author | beavailable <beavailable@proton.me> | 2023-12-13 03:23:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-13 03:23:29 (GMT) |
commit | 3aea6c4823e90172c9bc36cd20dc51b295d8a3c4 (patch) | |
tree | 12040ee3f1f6e9fcb679b8be79905587281592ee /Doc/library/asyncio-eventloop.rst | |
parent | a3a1cb48456c809f7b1ab6a6ffe83e8b3f69be0f (diff) | |
download | cpython-3aea6c4823e90172c9bc36cd20dc51b295d8a3c4.zip cpython-3aea6c4823e90172c9bc36cd20dc51b295d8a3c4.tar.gz cpython-3aea6c4823e90172c9bc36cd20dc51b295d8a3c4.tar.bz2 |
gh-101336: Add keep_alive keyword arg for asyncio create_server() (#112485)
Diffstat (limited to 'Doc/library/asyncio-eventloop.rst')
-rw-r--r-- | Doc/library/asyncio-eventloop.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/library/asyncio-eventloop.rst b/Doc/library/asyncio-eventloop.rst index ea1d146..828e506 100644 --- a/Doc/library/asyncio-eventloop.rst +++ b/Doc/library/asyncio-eventloop.rst @@ -671,6 +671,7 @@ Creating network servers flags=socket.AI_PASSIVE, \ sock=None, backlog=100, ssl=None, \ reuse_address=None, reuse_port=None, \ + keep_alive=None, \ ssl_handshake_timeout=None, \ ssl_shutdown_timeout=None, \ start_serving=True) @@ -735,6 +736,13 @@ Creating network servers set this flag when being created. This option is not supported on Windows. + * *keep_alive* set to ``True`` keeps connections active by enabling the + periodic transmission of messages. + + .. versionchanged:: 3.13 + + Added the *keep_alive* parameter. + * *ssl_handshake_timeout* is (for a TLS server) the time in seconds to wait for the TLS handshake to complete before aborting the connection. ``60.0`` seconds if ``None`` (default). |