bpo-44011: add docs for ssl_shutdown_timeout parameter by kumaraditya303 · Pull Request #31597 · python/cpython
Open a streaming transport connection to a given
* *ssl_shutdown_timeout* is the time in seconds to wait for the SSL shutdown to complete before aborting the connection. ``30.0`` seconds if ``None`` (default).
.. versionchanged:: 3.5
Added support for SSL/TLS in :class:`ProactorEventLoop`.
For more information: https://tools.ietf.org/html/rfc6555
.. versionchanged:: 3.11
Added the *ssl_shutdown_timeout* parameter.
.. seealso::
The :func:`open_connection` function is a high-level alternative
.. coroutinemethod:: loop.create_unix_connection(protocol_factory, \ path=None, *, ssl=None, sock=None, \ server_hostname=None, ssl_handshake_timeout=None) server_hostname=None, ssl_handshake_timeout=None, \ ssl_shutdown_timeout=None)
Create a Unix connection.
.. versionchanged:: 3.11
Added the *ssl_shutdown_timeout* parameter.
Creating network servers ^^^^^^^^^^^^^^^^^^^^^^^^
Create a TCP server (socket type :data:`~socket.SOCK_STREAM`) listening on *port* of the *host* address.
* *ssl_shutdown_timeout* is the time in seconds to wait for the SSL shutdown to complete before aborting the connection. ``30.0`` seconds if ``None`` (default).
* *start_serving* set to ``True`` (the default) causes the created server to start accepting connections immediately. When set to ``False``, the user should await on :meth:`Server.start_serving` or
.. versionchanged:: 3.11
Added the *ssl_shutdown_timeout* parameter.
.. seealso::
The :func:`start_server` function is a higher-level alternative API
.. coroutinemethod:: loop.create_unix_server(protocol_factory, path=None, \ *, sock=None, backlog=100, ssl=None, \ ssl_handshake_timeout=None, start_serving=True) ssl_handshake_timeout=None, \ ssl_shutdown_timeout=None, \ start_serving=True)
Similar to :meth:`loop.create_server` but works with the :py:data:`~socket.AF_UNIX` socket family.
.. versionchanged:: 3.11
Added the *ssl_shutdown_timeout* parameter.
.. coroutinemethod:: loop.connect_accepted_socket(protocol_factory, \ sock, *, ssl=None, ssl_handshake_timeout=None) sock, *, ssl=None, ssl_handshake_timeout=None, \ ssl_shutdown_timeout=None)
Wrap an already accepted connection into a transport/protocol pair.
* *ssl_shutdown_timeout* is the time in seconds to wait for the SSL shutdown to complete before aborting the connection. ``30.0`` seconds if ``None`` (default).
Returns a ``(transport, protocol)`` pair.
.. versionadded:: 3.5.3
Added the *ssl_handshake_timeout* parameter.
.. versionchanged:: 3.11
Added the *ssl_shutdown_timeout* parameter.
Transferring files ^^^^^^^^^^^^^^^^^^
.. coroutinemethod:: loop.start_tls(transport, protocol, \ sslcontext, *, server_side=False, \ server_hostname=None, ssl_handshake_timeout=None) server_hostname=None, ssl_handshake_timeout=None, \ ssl_shutdown_timeout=None)
Upgrade an existing transport-based connection to TLS.
* *ssl_shutdown_timeout* is the time in seconds to wait for the SSL shutdown to complete before aborting the connection. ``30.0`` seconds if ``None`` (default).
.. versionadded:: 3.7
.. versionchanged:: 3.11
Added the *ssl_shutdown_timeout* parameter.
Watching file descriptors ^^^^^^^^^^^^^^^^^^^^^^^^^