mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
gh-101336: Add keep_alive keyword arg for asyncio create_server() (#112485)
This commit is contained in:
parent
a3a1cb4845
commit
3aea6c4823
4 changed files with 17 additions and 0 deletions
|
|
@ -316,6 +316,7 @@ class AbstractEventLoop:
|
|||
*, family=socket.AF_UNSPEC,
|
||||
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):
|
||||
|
|
@ -354,6 +355,9 @@ class AbstractEventLoop:
|
|||
they all 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.
|
||||
|
||||
ssl_handshake_timeout is the time in seconds that an SSL server
|
||||
will wait for completion of the SSL handshake before aborting the
|
||||
connection. Default is 60s.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue