]> git.ipfire.org Git - thirdparty/chrony.git/commit
Fix peer polling with shorter remote poll
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 4 Jun 2013 10:39:17 +0000 (12:39 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 4 Jun 2013 10:52:49 +0000 (12:52 +0200)
commit78ae4ebfaa30d70fb699b0f70abc2a46593d2237
tree4e1d14b2f4ecb68635666b17482d5d9f79f9b8ec
parentcf700a00843846835f81502b94a269ae76a0ba1d
Fix peer polling with shorter remote poll

If the remote peer uses a polling interval shorter than the local
minimum, the local peer will be unable to send any packets as the
timeout will be updated on every received valid packet and will never
expire.

Modify the delay calculation to aim at poll interval away since the last
transmit.

Also, share the delay calculation code with transmit_timeout().
ntp_core.c