cpython: asyncio: Log a warning when eof_received() returns true and using ssl.

http://hg.python.org/cpython/rev/0c5f2223026f changeset: 86830:0c5f2223026f user: Guido van Rossum <guido@dropbox.com> date: Fri Nov 01 14:19:35 2013 -0700 summary: asyncio: Log a warning when eof_received() returns true and using ssl. files: Lib/asyncio/selector_events.py | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/Lib/asyncio/selector_events.py b/Lib/asyncio/selector_events.py --- a/Lib/asyncio/selector_events.py +++ b/Lib/asyncio/selector_events.py @@ -684,7 +684,10 @@ self._protocol.data_received(data) else: try: - self._protocol.eof_received() + keep_open = self._protocol.eof_received() + if keep_open: + logger.warning('returning true from eof_received() ' + 'has no effect when using ssl') finally: self.close() -- Repository URL: http://hg.python.org/cpython
participants (1)
-
guido.van.rossum