summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorOleg Iarygin <oleg@arhadthedev.net>2022-04-15 12:23:14 (GMT)
committerGitHub <noreply@github.com>2022-04-15 12:23:14 (GMT)
commit6217864fe5f6855f59d608733ce83fd4466e1b8c (patch)
tree3d852fadd0e29891d382ed9f41f161b237b3e703 /Misc
parentbd26ef5e9e701d2ab3509a49d9351259a3670772 (diff)
downloadcpython-6217864fe5f6855f59d608733ce83fd4466e1b8c.zip
cpython-6217864fe5f6855f59d608733ce83fd4466e1b8c.tar.gz
cpython-6217864fe5f6855f59d608733ce83fd4466e1b8c.tar.bz2
gh-79156: Add start_tls() method to streams API (#91453)
The existing event loop `start_tls()` method is not sufficient for connections using the streams API. The existing StreamReader works because the new transport passes received data to the original protocol. The StreamWriter must then write data to the new transport, and the StreamReaderProtocol must be updated to close the new transport correctly. The new StreamWriter `start_tls()` updates itself and the reader protocol to the new SSL transport. Co-authored-by: Ian Good <icgood@gmail.com>
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2019-05-06-23-36-34.bpo-34975.eb49jr.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2019-05-06-23-36-34.bpo-34975.eb49jr.rst b/Misc/NEWS.d/next/Library/2019-05-06-23-36-34.bpo-34975.eb49jr.rst
new file mode 100644
index 0000000..1576269
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2019-05-06-23-36-34.bpo-34975.eb49jr.rst
@@ -0,0 +1,3 @@
+Adds a ``start_tls()`` method to :class:`~asyncio.streams.StreamWriter`,
+which upgrades the connection with TLS using the given
+:class:`~ssl.SSLContext`.