mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
gh-92679: Clarify asyncio.loop.start_tls parameters (GH-92682)
(cherry picked from commit 898d0d9ad8)
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
This commit is contained in:
parent
8a7695e2b7
commit
5f0d266af9
1 changed files with 8 additions and 3 deletions
|
|
@ -808,9 +808,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:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue