pfreixes added the comment: Yeps,
I have an example related to Redis [1], the server warns that the connection will be closed because you reached out the maximum number of connections. 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. [1] https://github.com/antirez/redis/blob/09dd7b5ff02de4a311032939c27fd6fc62fbd4a3/src/networking.c#L615 On Wed, Jul 5, 2017 at 11:19 PM, Guido van Rossum <rep...@bugs.python.org> wrote: > > 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 <rep...@bugs.python.org> > <http://bugs.python.org/issue30861> > _______________________________________ ---------- _______________________________________ 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