summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-24 00:33:19 +0200
committertv <tv@krebsco.de>2026-10-24 00:33:19 +0200
commit31bcd1f96be8625266d7d64e594341d849e90fc1 (patch)
tree9b0a4edbeb3684e5aff964855bf82af607851b69 /src
parent5f20b6723a57a17072ce9961b04fa60b3f2dcbcf (diff)
heal after reply timeout
Diffstat (limited to 'src')
-rw-r--r--src/state.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/state.rs b/src/state.rs
index 46a29d4..a6c2356 100644
--- a/src/state.rs
+++ b/src/state.rs
@@ -324,9 +324,12 @@ impl PeerState {
timing: &Timing,
now: Instant,
) -> bool {
+ // While an answer to our last sync message is due, a lost message is the reply
+ // timeout's to resend; healing is for when neither side has anything outstanding.
if local == remote
|| self.liveness != Liveness::Active
|| self.hello_state != HelloState::Established
+ || self.sync.reply.is_some()
{
return false;
}