[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Polling POLLRDHUP events?
[Thread Prev] | [Thread Next]
- Subject: Re: Polling POLLRDHUP events?
- From: Ludovic Courtès <ludo@xxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Mon, 14 Jan 2019 17:15:48 +0100
- To: Andreas Schneider <asn@xxxxxxxxxxxxxx>
- Cc: libssh@xxxxxxxxxx
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’.
Polling POLLRDHUP events? | Ludovic Courtès <ludo@xxxxxxx> |
Re: Polling POLLRDHUP events? | Andreas Schneider <asn@xxxxxxxxxxxxxx> |