diff options
| author | Victor Stinner <victor.stinner@gmail.com> | 2015-01-28 23:52:07 +0100 |
|---|---|---|
| committer | Victor Stinner <victor.stinner@gmail.com> | 2015-01-28 23:52:07 +0100 |
| commit | 38cce057ca9eaf0b78bdf0e944afda8a96b63003 (patch) | |
| tree | 4f952a50abf8fdda20baa48a67bfadfe2cf1cc41 /asyncio | |
| parent | f437214c06080cf965e37d6ffbbc35590562cece (diff) | |
| download | trollius-38cce057ca9eaf0b78bdf0e944afda8a96b63003.tar.gz | |
Fix SSLProtocol.eof_received()
Wake-up the waiter if it is not done yet.
Diffstat (limited to 'asyncio')
| -rw-r--r-- | asyncio/sslproto.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/asyncio/sslproto.py b/asyncio/sslproto.py index f2b856c..26937c8 100644 --- a/asyncio/sslproto.py +++ b/asyncio/sslproto.py @@ -489,6 +489,10 @@ class SSLProtocol(protocols.Protocol): try: if self._loop.get_debug(): logger.debug("%r received EOF", self) + + if self._waiter is not None and not self._waiter.done(): + self._waiter.set_exception(ConnectionResetError()) + if not self._in_handshake: keep_open = self._app_protocol.eof_received() if keep_open: |
