diff options
author | Miroslav Lichvar <mlichvar@redhat.com> | 2014-10-02 17:18:43 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2014-10-02 17:24:34 +0200 |
commit | b434ce70696879aad066fff67253e44e5f5b238e (patch) | |
tree | b29fa99983269a0ccd448d3ba8b6eba8b4dace93 /libbb/perror_nomsg_and_die.c | |
parent | cf76b5ce12a685b0c0a8ea53fa95cb0f0922a4f1 (diff) | |
download | busybox-b434ce70696879aad066fff67253e44e5f5b238e.tar.gz |
ntpd: don't stay at short polling interval
To avoid polling servers frequently slowly increase the interval up
to BIGPOLL when
- no replies are received from a peer
- no source can be selected
- peer claims to be unsynchronized (e.g. we are polling it too
frequently)
When recv() returns with an error, drop code to try to continue
on network errors: I'm not convinced those cases happen in real life.
function old new delta
recv_and_process_peer_pkt 919 838 -81
Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/perror_nomsg_and_die.c')
0 files changed, 0 insertions, 0 deletions