[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Polling POLLRDHUP events?


Andreas Schneider <asn@xxxxxxxxxxxxxx> skribis:

> On Thursday, January 10, 2019 6:12:36 PM CET Ludovic Courtès wrote:

[...]

>> Apparently libssh only ever polls for POLLIN events; on GNU/Linux, I
>> think it would be useful to poll for POLLIN | POLLRDHUP, which would
>> allow connection shutdowns to be caught, as opposed to sitting in a
>> poll(2) call.  I believe the change would be along these lines:
>
> does the attached patch look fine for you?

It does, thank you!

Ludo’.

References:
Polling POLLRDHUP events?Ludovic Courtès <ludo@xxxxxxx>
Re: Polling POLLRDHUP events?Andreas Schneider <asn@xxxxxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org