mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 18:25:07 -05:00
sched: add new timeout class for peer transmissions
This allows transmissions in symmetric mode to be scheduled independently from client transmissions. This reduces maximum delay in scheduling when chronyd is configured with a larger number of servers.
This commit is contained in:
@@ -427,7 +427,8 @@ restart_timeout(NCR_Instance inst, double delay)
|
||||
/* Start new timer for transmission */
|
||||
inst->tx_timeout_id = SCH_AddTimeoutInClass(delay, get_separation(inst->local_poll),
|
||||
SAMPLING_RANDOMNESS,
|
||||
SCH_NtpSamplingClass,
|
||||
inst->mode == MODE_CLIENT ?
|
||||
SCH_NtpClientClass : SCH_NtpPeerClass,
|
||||
transmit_timeout, (void *)inst);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user