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

This commit is contained in:
Guido van Rossum 2013-11-01 14:19:35 -07:00
parent e3f52ef067
commit 3a703921a6
1 changed files with 4 additions and 1 deletions

View File

@ -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()