Bug 7959 - erro occoure ! rsync can't auto exit
Summary: erro occoure ! rsync can't auto exit
Status: RESOLVED WORKSFORME
Alias: None
Product: rsync
Classification: Unclassified
Component: core (show other bugs)
Version: 2.6.8
Hardware: x86 Windows XP
: P3 normal (vote)
Target Milestone: ---
Assignee: Wayne Davison
QA Contact: Rsync QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-18 01:08 UTC by xingyun
Modified: 2011-12-24 22:22 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description xingyun 2011-02-18 01:08:51 UTC
rsync -ar  --password-file=/etc/rsyncd.demo.pas /tmp/  demo@10.29.80.11::accesslog
if  10.29.80.11 is not alive ( or dead ) , it will go on !
Comment 1 Wayne Davison 2011-02-22 10:58:47 UTC
I believe you mean by "go on" that it will hang?  (Rather than go on to the next command?)  If so, you should check to see what rsync is doing.  For instance, run it under strace (or the equivalent for your system).  The most likely thing is that it is hanging at the connect() call.

If you want rsync to timeout, pass the --contimeout=N (connect timeout) option to have it timeout after N seconds.

If the above isn't an accurate understanding of your issue, feel free to respond with more details.
Comment 2 Wayne Davison 2011-12-24 22:22:13 UTC
No response.  Use of --continmeout should hopefully fix things for the user.