Rsync v2.6.9 hangs

Gary Partis gary at partis.co.uk
Mon Feb 6 03:30:18 MST 2012


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



More information about the rsync mailing list