commit | 415bc46a78e785f357c8960ae70f18a6b6cccbb6 | [log] [tgz] |
---|---|---|
author | Yury Selivanov <yury@magic.io> | Tue Jun 05 08:59:58 2018 -0400 |
committer | GitHub <noreply@github.com> | Tue Jun 05 08:59:58 2018 -0400 |
tree | 9b99fb2ad8eb0d343d1e3c8e061881ed5e657b9d | |
parent | e9e397605789b2a67b67558fbbe756b7b88934f5 [diff] [blame] |
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.
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 @@ called with None as its argument. """ self._ssl_protocol._abort() + self._closed = True class SSLProtocol(protocols.Protocol):