summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/sslproto.py
diff options
context:
space:
mode:
authorYury Selivanov <yury@magic.io>2018-06-05 12:59:58 (GMT)
committerGitHub <noreply@github.com>2018-06-05 12:59:58 (GMT)
commit415bc46a78e785f357c8960ae70f18a6b6cccbb6 (patch)
tree9b99fb2ad8eb0d343d1e3c8e061881ed5e657b9d /Lib/asyncio/sslproto.py
parente9e397605789b2a67b67558fbbe756b7b88934f5 (diff)
downloadcpython-415bc46a78e785f357c8960ae70f18a6b6cccbb6.zip
cpython-415bc46a78e785f357c8960ae70f18a6b6cccbb6.tar.gz
cpython-415bc46a78e785f357c8960ae70f18a6b6cccbb6.tar.bz2
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.
Diffstat (limited to 'Lib/asyncio/sslproto.py')
-rw-r--r--Lib/asyncio/sslproto.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/asyncio/sslproto.py b/Lib/asyncio/sslproto.py
index 8515ec5..fac2ae7 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):