{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/76eb842b26e75ac10be02dbc1645dd37?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"76eb842b26e75ac10be02dbc1645dd37","url":"https://api.github.com/users/axkibe","login":"axkibe","id":495407},"assignee":null,"updated_at":"2011-11-16T14:59:35Z","labels":[],"comments":0,"closed_at":null,"url":"https://api.github.com/repos/axkibe/lsyncd/issues/30","body":"Originally filed by some.h...@gmail.com on 2010-10-13T09:34:57\n\nlsync 1.39 ignores error codes from rsync while syncing dirs, so if remote rsyncd is unreachable directory never gets synced.\r\n\r\nProblem is very easy to reproduce\r\n- configure lsyncd to watch some dir, check updates are propagated OK\r\n- stop rsyncd on remote side\r\n- make changes to local dir, watch something like this in debug log\r\n  select() timeout, doing delays.\r\n  in queue: 1 expired / 0 delayed dirs\r\n  delay expired: acting for /apps/samba/shares/deps/novgorod/out/.\r\n  calling /usr/bin/rsync -ltd --delete --bwlimit=100 --timeout=60 --password-file=/home/transf-novgorod/.rsyncpass --exclude-from /home/transf-novgorod/lsyncd.exclusions /apps/samba/shares/deps/novgorod/out/ spb@hawk-n1.n1.maxidom.ru::from-spb/\r\n    /usr/bin/rsync /apps/samba/shares/deps/novgorod/out/ --> spb@hawk-n1.n1.maxidom.ru::from-spb/ [7756]\r\n  rsync: failed to connect to hawk-n1.n1.maxidom.ru: Connection refused (111)\r\n  rsync error: error in socket IO (code 10) at clientserver.c(98)\r\n  Forked binary process returned non-zero return code: 10\r\n  Finished waiting for all children\r\n  in queue: 0 expired / 0 delayed dirs\r\n  gone blocking\r\n- so changes are lost\r\n\r\nThis severely limits reliablity of lsyncd as mirroring solution.","html_url":"https://github.com/axkibe/lsyncd/issues/30","title":"rsync IO error (due to unreachable peer) erroneously treated as success/done","number":30,"id":2257070,"created_at":"2011-11-16T14:59:35Z"},"action":"opened"}