From adda744d4e3716b7e0fcda1085de72a1791310f2 Mon Sep 17 00:00:00 2001 From: Jordan Borean Date: Sun, 30 May 2021 12:27:15 +1000 Subject: [PATCH 1/2] Support asyncio loop.start_tls() for TLS in TLS --- Lib/asyncio/sslproto.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/asyncio/sslproto.py b/Lib/asyncio/sslproto.py index cad25b26539f5a..24e9bb32022f4c 100644 --- a/Lib/asyncio/sslproto.py +++ b/Lib/asyncio/sslproto.py @@ -283,6 +283,7 @@ def feed_appdata(self, data, offset=0): class _SSLProtocolTransport(transports._FlowControlMixin, transports.Transport): + _start_tls_compatible = True _sendfile_compatible = constants._SendfileMode.FALLBACK def __init__(self, loop, ssl_protocol): From f1c89ea7fe9340f822af15f46af0eb048cd0001d Mon Sep 17 00:00:00 2001 From: "blurb-it[bot]" <43283697+blurb-it[bot]@users.noreply.github.com> Date: Fri, 11 Jun 2021 04:34:41 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=93=9C=F0=9F=A4=96=20Added=20by=20blu?= =?UTF-8?q?rb=5Fit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Core and Builtins/2021-06-11-04-34-41.bpo-37179.7Gs2-B.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Core and Builtins/2021-06-11-04-34-41.bpo-37179.7Gs2-B.rst diff --git a/Misc/NEWS.d/next/Core and Builtins/2021-06-11-04-34-41.bpo-37179.7Gs2-B.rst b/Misc/NEWS.d/next/Core and Builtins/2021-06-11-04-34-41.bpo-37179.7Gs2-B.rst new file mode 100644 index 00000000000000..62136b816d010b --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2021-06-11-04-34-41.bpo-37179.7Gs2-B.rst @@ -0,0 +1 @@ +Allow asyncio StartTLS in an existing TLS connection. \ No newline at end of file