From 7248d660e3d257b85074d55c86a9828b0b929c21 Mon Sep 17 00:00:00 2001 From: Andrew Bettison Date: Wed, 12 Nov 2014 20:06:34 +1030 Subject: [PATCH] Fix non-deterministic assertion failure under load --- overlay_interface.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/overlay_interface.c b/overlay_interface.c index 5cc8c7f5..df131dd8 100644 --- a/overlay_interface.c +++ b/overlay_interface.c @@ -795,8 +795,10 @@ static void overlay_interface_poll(struct sched_ent *alarm) unschedule(alarm); if (alarm->alarm!=-1 && interface->state==INTERFACE_STATE_UP) { - if (alarm->alarm < now) + if (alarm->alarm < now) { alarm->alarm = now; + alarm->deadline = alarm->alarm + interface->destination->tick_ms / 2; + } schedule(alarm); } }