[PATCH] ntpd: don't stay at short polling interval
Miroslav Lichvar
mlichvar at redhat.com
Mon Oct 6 09:37:54 UTC 2014
On Thu, Oct 02, 2014 at 05:27:28PM +0200, Denys Vlasenko wrote:
> On Wed, Oct 1, 2014 at 3:51 PM, Miroslav Lichvar <mlichvar at redhat.com> wrote:
> > 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)
> > - recv() returns with an error (e.g. the host doesn't exist or is not
> > running an NTP service)
>
> Thanks! Applied with small changes.
Great, thanks!
The changes you have made to the patch seems to disable increasing the
polling interval when the -w option is used, was that intended?
As for the recv() errors, I think they would be reported if the
IP_RECVERR option was enabled on the socket.
--
Miroslav Lichvar
More information about the busybox
mailing list