commit | b1461aa78139cd849b507049a77ad2635b78f8a3 | [log] [tgz] |
---|---|---|
author | Yury Selivanov <yury@magic.io> | Fri Dec 16 11:50:41 2016 -0500 |
committer | Yury Selivanov <yury@magic.io> | Fri Dec 16 11:50:41 2016 -0500 |
tree | 3df2ab9296d73e0e225f663c381cc29ae188a04b | |
parent | 610f5d739dd22bce352bde59dce3985c73aaefab [diff] [blame] |
Issue #28990: Fix SSL hanging if connection is closed before handshake completed.
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 @@ 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