target: if polling fails, back off
commit1399e5f753256e7b5523f1eb260cdd7e95e80dee
authorØyvind Harboe <oyvind.harboe@zylin.com>
Sun, 8 Aug 2010 07:14:54 +0000 (8 09:14 +0200)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Mon, 9 Aug 2010 07:10:37 +0000 (9 09:10 +0200)
tree9562f52600e8f5fc4fa9ac8b5a7268bf6a100d12
parent28ddefd0659048773fd6066d0265fca76ca036d5
target: if polling fails, back off

back-off algorithm for polling. Double polling
interval up to 5000ms when it fails.

when polling succeeds, reset backoff.

This avoids flooding logs(as much) when working
with conditions where the target polling will fail.

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
src/target/target.c