From: Olivier Houchard Date: Thu, 23 Oct 2025 08:48:38 +0000 (+0200) Subject: BUG/MEDIUM: stick-tables: Don't loop if there's nothing left X-Git-Tag: v3.3-dev11~57 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dfe866fa986629b5f04e3bb9d04b65240289d9eb;p=thirdparty%2Fhaproxy.git BUG/MEDIUM: stick-tables: Don't loop if there's nothing left Before waking up the expiration task again at the end of it, make sure the next date is set. If there's nothing left to do, then task_exp will be TASK_ETERNITY and we then don't want to be waken up again. --- diff --git a/src/stick_table.c b/src/stick_table.c index 0d50a9d63..a328f45aa 100644 --- a/src/stick_table.c +++ b/src/stick_table.c @@ -1135,7 +1135,7 @@ struct task *process_tables_expire(struct task *task, void *context, unsigned in table_eb = tmpnode; } - if (tick_is_le(task_exp, now_ms)) { + if (tick_isset(task_exp) && tick_is_le(task_exp, now_ms)) { /* * More to do, we should wake up immediately. */