summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio
diff options
context:
space:
mode:
authorYury Selivanov <yury@magic.io>2016-12-16 16:50:41 (GMT)
committerYury Selivanov <yury@magic.io>2016-12-16 16:50:41 (GMT)
commitb1461aa78139cd849b507049a77ad2635b78f8a3 (patch)
tree3df2ab9296d73e0e225f663c381cc29ae188a04b /Lib/asyncio
parent610f5d739dd22bce352bde59dce3985c73aaefab (diff)
downloadcpython-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.py1
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