diff options
author | Yury Selivanov <yury@magic.io> | 2016-12-16 16:50:41 (GMT) |
---|---|---|
committer | Yury Selivanov <yury@magic.io> | 2016-12-16 16:50:41 (GMT) |
commit | b1461aa78139cd849b507049a77ad2635b78f8a3 (patch) | |
tree | 3df2ab9296d73e0e225f663c381cc29ae188a04b /Lib/asyncio | |
parent | 610f5d739dd22bce352bde59dce3985c73aaefab (diff) | |
download | cpython-b1461aa78139cd849b507049a77ad2635b78f8a3.zip cpython-b1461aa78139cd849b507049a77ad2635b78f8a3.tar.gz cpython-b1461aa78139cd849b507049a77ad2635b78f8a3.tar.bz2 |
Issue #28990: Fix SSL hanging if connection is closed before handshake completed.
Diffstat (limited to 'Lib/asyncio')
-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 804c5c3..c2c4b95 100644 --- a/Lib/asyncio/sslproto.py +++ b/Lib/asyncio/sslproto.py @@ -479,6 +479,7 @@ class SSLProtocol(protocols.Protocol): self._loop.call_soon(self._app_protocol.connection_lost, exc) self._transport = None self._app_transport = None + self._wakeup_waiter(exc) def pause_writing(self): """Called when the low-level transport's buffer goes over |