8000 GH-88968: Add notes about socket ownership transfers by gvanrossum · Pull Request #97936 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

GH-88968: Add notes about socket ownership transfers #97936

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 5, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Also add notes for stream functions
  • Loading branch information
gvanrossum committed Oct 5, 2022
commit 03472653f3e64af4a6acb456d1e20a5ec4bf5688
24 changes: 24 additions & 0 deletions Doc/library/asyncio-stream.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ and work with streams:
The rest of the arguments are passed directly to
:meth:`loop.create_connection`.

.. note::

The *sock* argument transfers ownership of the socket to the
:class:`StreamWriter` created. To close the socket, call its
:meth:`~asyncio.StreamWriter.close` method.

.. versionchanged:: 3.7
Added the *ssl_handshake_timeout* parameter.

Expand Down Expand Up @@ -103,6 +109,12 @@ and work with streams:
The rest of the arguments are passed directly to
:meth:`loop.create_server`.

.. note::

The *sock* argument transfers ownership of the socket to the
server created. To close the socket, call the server's
:meth:`~asyncio.Server.close` method.

.. versionchanged:: 3.7
Added the *ssl_handshake_timeout* and *start_serving* parameters.

Expand All @@ -123,6 +135,12 @@ and work with streams:

See also the documentation of :meth:`loop.create_unix_connection`.

.. note::

The *sock* argument transfers ownership of the socket to the
:class:`StreamWriter` created. To close the socket, call its
:meth:`~asyncio.StreamWriter.close` method.

.. availability:: Unix.

.. versionchanged:: 3.7
Expand All @@ -143,6 +161,12 @@ and work with streams:

See also the documentation of :meth:`loop.create_unix_server`.

.. note::

The *sock* argument transfers ownership of the socket to the
server created. To close the socket, call the server's
:meth:`~asyncio.Server.close` method.

.. availability:: Unix.

.. versionchanged:: 3.7
Expand Down
0