Re: openrsync: fix poll_timeout in server mode

2020-12-12 Thread Claudio Jeker
On Sat, Dec 12, 2020 at 07:07:20AM -0500, Daniel Moch wrote: > A recent change to openrsync added the --timeout opt. There's code to > handle the (default) case of --timeout=0, which sets the poll_timeout > to -1 (INFTIM). Unfortunately that code doesn't run in the server > process, meaning all o

openrsync: fix poll_timeout in server mode

2020-12-12 Thread Daniel Moch
A recent change to openrsync added the --timeout opt. There's code to handle the (default) case of --timeout=0, which sets the poll_timeout to -1 (INFTIM). Unfortunately that code doesn't run in the server process, meaning all of the relevant calls to poll(2) return immediately and the process fa