Rsync hanging, even with timeout and contimeout specified
Wayne Davison
wayned at samba.org
Sat Nov 9 11:58:30 MST 2013
On Fri, Nov 8, 2013 at 6:47 AM, Dan McGee <dan at archlinux.org> wrote:
> $ strace -f rsync --contimeout=10 --timeout=10 rsync://
> mirror.aarnet.edu.au/archlinux/lastsync /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.
..wayne..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/rsync/attachments/20131109/c9992c93/attachment.html>
More information about the rsync
mailing list