mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
[3.14] gh-134664: document cleanup_socket parameter in asyncio.start_unix_server (GH-134750) (#134779)
gh-134664: document `cleanup_socket` parameter in `asyncio.start_unix_server` (GH-134750)
(cherry picked from commit 92ea1eb38f)
Co-authored-by: Shamil <ashm.tech@proton.me>
This commit is contained in:
parent
b6e624a3fc
commit
0f93b2f862
1 changed files with 8 additions and 1 deletions
|
|
@ -171,13 +171,17 @@ and work with streams:
|
||||||
.. function:: start_unix_server(client_connected_cb, path=None, \
|
.. function:: start_unix_server(client_connected_cb, path=None, \
|
||||||
*, limit=None, sock=None, backlog=100, ssl=None, \
|
*, limit=None, sock=None, backlog=100, ssl=None, \
|
||||||
ssl_handshake_timeout=None, \
|
ssl_handshake_timeout=None, \
|
||||||
ssl_shutdown_timeout=None, start_serving=True)
|
ssl_shutdown_timeout=None, start_serving=True, cleanup_socket=True)
|
||||||
:async:
|
:async:
|
||||||
|
|
||||||
Start a Unix socket server.
|
Start a Unix socket server.
|
||||||
|
|
||||||
Similar to :func:`start_server` but works with Unix sockets.
|
Similar to :func:`start_server` but works with Unix sockets.
|
||||||
|
|
||||||
|
If *cleanup_socket* is true then the Unix socket will automatically
|
||||||
|
be removed from the filesystem when the server is closed, unless the
|
||||||
|
socket has been replaced after the server has been created.
|
||||||
|
|
||||||
See also the documentation of :meth:`loop.create_unix_server`.
|
See also the documentation of :meth:`loop.create_unix_server`.
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
@ -198,6 +202,9 @@ and work with streams:
|
||||||
.. versionchanged:: 3.11
|
.. versionchanged:: 3.11
|
||||||
Added the *ssl_shutdown_timeout* parameter.
|
Added the *ssl_shutdown_timeout* parameter.
|
||||||
|
|
||||||
|
.. versionchanged:: 3.13
|
||||||
|
Added the *cleanup_socket* parameter.
|
||||||
|
|
||||||
|
|
||||||
StreamReader
|
StreamReader
|
||||||
============
|
============
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue