Message297784
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
<report@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 <report@bugs.python.org>
> <http://bugs.python.org/issue30861>
> _______________________________________ |
|
Date |
User |
Action |
Args |
2017-07-05 21:27:10 | pfreixes | set | recipients:
+ pfreixes, gvanrossum, yselivanov |
2017-07-05 21:27:10 | pfreixes | link | issue30861 messages |
2017-07-05 21:27:10 | pfreixes | create | |
|