mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 04:35:06 -05:00
ntp: take auto_offline sources offline before sending new request
This commit is contained in:
@@ -847,6 +847,10 @@ transmit_timeout(void *arg)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* With auto_offline take the source offline on 2nd missed reply */
|
||||||
|
if (inst->auto_offline && inst->tx_count >= 2)
|
||||||
|
NCR_TakeSourceOffline(inst);
|
||||||
|
|
||||||
if (inst->opmode == MD_OFFLINE) {
|
if (inst->opmode == MD_OFFLINE) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -908,10 +912,6 @@ transmit_timeout(void *arg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
SRC_UpdateReachability(inst->source, 0);
|
SRC_UpdateReachability(inst->source, 0);
|
||||||
|
|
||||||
if (inst->auto_offline && inst->tx_count >= 3) {
|
|
||||||
NCR_TakeSourceOffline(inst);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (inst->opmode) {
|
switch (inst->opmode) {
|
||||||
|
|||||||
Reference in New Issue
Block a user