Yury Selivanov added the comment: > But IMHO the example it's just that an example, if the connection at some point was not broken/closed/... and some data came into the buffer, this data should be put available for the user.
In my experience, you never want to recover any data from broken connections. In cases where it's safe, StreamReader attaches the buffered data to the exception (see IncompleteReadError). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30861> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com