Rsync hanging, even with timeout and contimeout specified

Dan McGee dan at archlinux.org
Tue Nov 12 07:43:56 MST 2013


On Sat, Nov 9, 2013 at 12:58 PM, Wayne Davison <wayned at samba.org> wrote:

>
> 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.
>
> Thanks a bunch for the quick response and fix!

-Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/rsync/attachments/20131112/e388bc22/attachment.html>


More information about the rsync mailing list