mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
asyncio: Log a warning when eof_received() returns true and using ssl.
This commit is contained in:
parent
e3f52ef067
commit
3a703921a6
1 changed files with 4 additions and 1 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue