Rsync v2.6.9 hangs

Gary Partis gary at partis.co.uk
Mon Feb 6 06:37:23 MST 2012


Hello again

This problem may well be a "half open TCP connection" problem and
nothing directly to do with rsync other than the mechanism used by rsync
to terminate in an error condition.

Thanks

Gary


> -----Original Message-----
> From: rsync-bounces at lists.samba.org [mailto:rsync-
> bounces at lists.samba.org] On Behalf Of Gary Partis
> Sent: 06 February 2012 10:30
> To: rsync at lists.samba.org
> Subject: Rsync v2.6.9 hangs
> 
> Hi all
> 
> We have a legacy system, which utilises rsync for file transfer - but
> occasionally hangs on the clinet.
> 
> We tracked this down to the read_timeout function in io.c. It performs
a
> select(), which appears to return a zero, so the read_timeout function
never
> exists. An strace shows what happens :
> 
> [root at tcu ~]# strace -p 10566
> Process 10566 attached - interrupt to quit select(4, [3], [], NULL,
{33,
> 764484})  = 0 (Timeout)
> select(4, [3], [], NULL, {60, 0})       = 0 (Timeout)
> select(4, [3], [], NULL, {60, 0})       = 0 (Timeout)
> select(4, [3], [], NULL, {60, 0})       = 0 (Timeout)
> select(4, [3], [], NULL, {60, 0})       = 0 (Timeout)
> select(4, [3], [], NULL, {60, 0})       = 0 (Timeout)
> select(4, [3], [], NULL, {60, 0})       = 0 (Timeout)
> select(4, [3], [], NULL, {60, 0})       = 0 (Timeout)
> select(4, [3], [], NULL, {60, 0})       = 0 (Timeout)
> select(4, [3], [], NULL, {60, 0})       = 0 (Timeout)
> select(4, [3], [], NULL, {60, 0})       = 0 (Timeout)
> select(4, [3], [], NULL, {60, 0}^C <unfinished ...> Process 10566
detached
> 
> Other than killing the process, which in some cases can be hung for
several
> days, is there another option/parameter to allow for eventual timeout
and
> exit?
> 
> Thanks in advance,
> 
> Gary
> 
> --
> Please use reply-all for most replies to avoid omitting the mailing
list.
> To unsubscribe or change options:
> https://lists.samba.org/mailman/listinfo/rsync
> Before posting, read:
http://www.catb.org/~esr/faqs/smart-questions.html
> 
> 



More information about the rsync mailing list