Rsync hanging, even with timeout and contimeout specified

Wayne Davison wayned at
Sat Nov 9 11:58:30 MST 2013

On Fri, Nov 8, 2013 at 6:47 AM, Dan McGee <dan at> wrote:

> $ strace -f rsync --contimeout=10 --timeout=10 rsync://
> /tmp/hanging-lastsync
> [...]
> write(3, "@RSYNCD: 31.0\n", 14)         = 14
> read(3, ^CProcess 30534 detached

It turns out that the code that is trying to read the server's @RSYNCD line
is now doing a read on a blocking socket instead of doing a select first.
 After fixing that, I discovered that the (before normal protocol)
line-reading code was not timing out correctly, so I fixed that too.  The
latest git version has this fixed.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the rsync mailing list