[issue30861] StreamReader does not return reamaing and ready data buffer before raise the Exeption

Guido van Rossum report at bugs.python.org
Wed Jul 5 17:19:21 EDT 2017


Guido van Rossum added the comment:

Do you have a specific use case where it's important to access the remaining data? ISTM that this is happening when the connection is lost and then it shouldn't matter how much of the data you read or not -- the connection was broken before the remote side closed it, and you should not trust the data.

----------
nosy: +gvanrossum

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30861>
_______________________________________


More information about the Python-bugs-list mailing list