summaryrefslogtreecommitdiff
path: root/asyncio/sslproto.py
diff options
context:
space:
mode:
Diffstat (limited to 'asyncio/sslproto.py')
-rw-r--r--asyncio/sslproto.py4
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: