[Python-checkins] gh-92679: Clarify asyncio.loop.start_tls parameters (#92682)

gvanrossum webhook-mailer at python.org
Wed Nov 2 00:52:25 EDT 2022


https://github.com/python/cpython/commit/898d0d9ad8328326ba5f7df9952e9dc287766ca3
commit: 898d0d9ad8328326ba5f7df9952e9dc287766ca3
branch: main
author: Oleg Iarygin <oleg at arhadthedev.net>
committer: gvanrossum <gvanrossum at gmail.com>
date: 2022-11-01T21:52:19-07:00
summary:

gh-92679: Clarify asyncio.loop.start_tls parameters (#92682)

files:
M Doc/library/asyncio-eventloop.rst

diff --git a/Doc/library/asyncio-eventloop.rst b/Doc/library/asyncio-eventloop.rst
index 4f12074dd700..d0a1ed2b99e5 100644
--- a/Doc/library/asyncio-eventloop.rst
+++ b/Doc/library/asyncio-eventloop.rst
@@ -877,9 +877,14 @@ TLS Upgrade
 
    Upgrade an existing transport-based connection to TLS.
 
-   Return a new transport instance, that the *protocol* must start using
-   immediately after the *await*.  The *transport* instance passed to
-   the *start_tls* method should never be used again.
+   Create a TLS coder/decoder instance and insert it between the *transport*
+   and the *protocol*. The coder/decoder implements both *transport*-facing
+   protocol and *protocol*-facing transport.
+
+   Return the created two-interface instance. After *await*, the *protocol*
+   must stop using the original *transport* and communicate with the returned
+   object only because the coder caches *protocol*-side data and sporadically
+   exchanges extra TLS session packets with *transport*.
 
    Parameters:
 



More information about the Python-checkins mailing list