Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3a70392

Browse files
author
Guido van Rossum
committed
asyncio: Log a warning when eof_received() returns true and using ssl.
1 parent e3f52ef commit 3a70392

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Lib/asyncio/selector_events.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,10 @@ def _read_ready(self):
684684
self._protocol.data_received(data)
685685
else:
686686
try:
687-
self._protocol.eof_received()
687+
keep_open = self._protocol.eof_received()
688+
if keep_open:
689+
logger.warning('returning true from eof_received() '
690+
'has no effect when using ssl')
688691
finally:
689692
self.close()
690693

0 commit comments

Comments
 (0)