From 415bc46a78e785f357c8960ae70f18a6b6cccbb6 Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Tue, 5 Jun 2018 08:59:58 -0400 Subject: bpo-33769: start_tls: Fix error message; cancel callbacks on error (GH-7403) In addition to that, mark SSLTransport as "closed" in its "abort()" method to prevent bogus warnings. --- Lib/asyncio/sslproto.py | 1 + 1 file changed, 1 insertion(+) (limited to 'Lib/asyncio/sslproto.py') diff --git a/Lib/asyncio/sslproto.py b/Lib/asyncio/sslproto.py index 8515ec5eeb..fac2ae74e8 100644 --- a/Lib/asyncio/sslproto.py +++ b/Lib/asyncio/sslproto.py @@ -399,6 +399,7 @@ class _SSLProtocolTransport(transports._FlowControlMixin, called with None as its argument. """ self._ssl_protocol._abort() + self._closed = True class SSLProtocol(protocols.Protocol): -- cgit v1.2.1