Resume signed Windows reconciliation after a proven missing helper acknowledgement

This commit is contained in:
2026-11-18 10:01:57 +01:00
parent 7cec566dfe
commit 3e6ce7f07c
4 changed files with 49 additions and 13 deletions
+16 -1
View File
@@ -1091,6 +1091,7 @@ impl SystemHelper {
serde_json::from_slice(&response.decision_bytes)?;
self.clock
.require_generation(decision.connection_generation)?;
let started = Instant::now();
self.wait_apply_clock(decision.issued_at,decision.valid_until)?;
self.sync()?;
let value = if let Some(grant)=crate::update_control::active_grant(&self.db)? {
@@ -1099,7 +1100,21 @@ impl SystemHelper {
&self.clock,&self.pin,&budget,grant)?;
self.sync.as_mut().unwrap().apply(&mut self.db,&guard,response,request_bytes,&self.clock,&self.boot)?
} else {
self.sync.as_mut().unwrap().apply(&mut self.db,&self.guard,response,request_bytes,&self.clock,&self.boot)?
// Refresh only a clock read that the core proves failed before
// its first transaction. Keep the original capture and deadline.
loop {
let result = self.sync.as_mut().unwrap().apply(
&mut self.db, &self.guard, response, request_bytes,
&self.clock, &self.boot,
);
match result {
Err(error) if rmm_agent_core::helper_reconcile::retryable_precommit_clock(&error)
&& started.elapsed() < Duration::from_secs(3) => {
std::thread::sleep(Duration::from_millis(20));
}
other => break other?,
}
}
};
let no_start_anchor = if value.ready
&& (self.settings.enable_effects