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@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

Reply via email to