Kaydet (Commit) 3a703921 authored tarafından Guido van Rossum's avatar Guido van Rossum

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

üst e3f52ef0
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment