[issue30861] StreamReader does not return reamaing and ready data buffer before raise the Exeption
Guido van Rossum
report at bugs.python.org
Thu Jul 6 17:52:59 EDT 2017
Guido van Rossum added the comment:
We seem to have a failure to communicate. I'm sure your example code "works", but you're not showing what's in the data it receives that is important for the app to read (your example just prints it).
And surely your app should be robust even if the connection is closed *without* ever receiving that data (since it may be lost in transit).
If you need an application-level error your design should include it in the protocol, not use the connection closing.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30861>
_______________________________________
More information about the Python-bugs-list
mailing list