From b1461aa78139cd849b507049a77ad2635b78f8a3 Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Fri, 16 Dec 2016 11:50:41 -0500 Subject: Issue #28990: Fix SSL hanging if connection is closed before handshake completed. --- Lib/asyncio/sslproto.py | 1 + 1 file changed, 1 insertion(+) (limited to 'Lib/asyncio/sslproto.py') diff --git a/Lib/asyncio/sslproto.py b/Lib/asyncio/sslproto.py index 804c5c30f1..c2c4b95fcb 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 -- cgit v1.2.1