diff options
author | Yury Selivanov <yury@magic.io> | 2018-06-05 12:59:58 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-05 12:59:58 (GMT) |
commit | 415bc46a78e785f357c8960ae70f18a6b6cccbb6 (patch) | |
tree | 9b99fb2ad8eb0d343d1e3c8e061881ed5e657b9d /Lib/asyncio/sslproto.py | |
parent | e9e397605789b2a67b67558fbbe756b7b88934f5 (diff) | |
download | cpython-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.py | 1 |
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): |