mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
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.
This commit is contained in:
parent
e9e3976057
commit
415bc46a78
3 changed files with 8 additions and 3 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue