diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-06-05 14:18:20 (GMT) |
---|---|---|
committer | Yury Selivanov <yury@magic.io> | 2018-06-05 14:18:20 (GMT) |
commit | 79c7e57c46a9e5ae2b99a821e152f334b775df2d (patch) | |
tree | ae2c54431490393d1bbaf911f8af90c357d0bcf8 /Lib/asyncio/sslproto.py | |
parent | ffd72acc508bbc994812cefbfb9532d3be2ab737 (diff) | |
download | cpython-79c7e57c46a9e5ae2b99a821e152f334b775df2d.zip cpython-79c7e57c46a9e5ae2b99a821e152f334b775df2d.tar.gz cpython-79c7e57c46a9e5ae2b99a821e152f334b775df2d.tar.bz2 |
bpo-33769: start_tls: Fix error message; cancel callbacks on error (GH-7403) (GH-7428)
In addition to that, mark SSLTransport as "closed" in its "abort()" method to prevent bogus warnings.
(cherry picked from commit 415bc46a78e785f357c8960ae70f18a6b6cccbb6)
Co-authored-by: Yury Selivanov <yury@magic.io>
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): |