diff options
author | Guido van Rossum <guido@dropbox.com> | 2013-11-01 21:19:35 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@dropbox.com> | 2013-11-01 21:19:35 (GMT) |
commit | 3a703921a61d45718fdc01e29e2ae8e907d9f0a0 (patch) | |
tree | b3e793d08162877cbb060b6117f4a11311053cae /Lib/asyncio | |
parent | e3f52ef067e3825c3479cfb4f58e3226cd1a8245 (diff) | |
download | cpython-3a703921a61d45718fdc01e29e2ae8e907d9f0a0.zip cpython-3a703921a61d45718fdc01e29e2ae8e907d9f0a0.tar.gz cpython-3a703921a61d45718fdc01e29e2ae8e907d9f0a0.tar.bz2 |
asyncio: Log a warning when eof_received() returns true and using ssl.
Diffstat (limited to 'Lib/asyncio')
-rw-r--r-- | 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 index a975dbb..c5fc5eb 100644 --- a/Lib/asyncio/selector_events.py +++ b/Lib/asyncio/selector_events.py @@ -684,7 +684,10 @@ class _SelectorSslTransport(_SelectorTransport): 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() |