BUG/MINOR: debug: do not set task expiration to TICK_ETERNITY

Using "debug task", it's possible to change a task's expiration, but
we must be careful not to set it to TICK_ETERNITY. Let's use tick_add()
instead. The risk is basically nul since it's a debugging command, so
no backport is needed.
This commit is contained in:
Willy Tarreau 2024-11-15 15:37:38 +01:00
parent 2f287f14f3
commit 808a7cc777
1 changed files with 1 additions and 1 deletions

View File

@ -1420,7 +1420,7 @@ static int debug_parse_cli_task(char **args, char *payload, struct appctx *appct
else if (task_ok) {
/* unlink task and wake with timer flag */
__task_unlink_wq(t);
t->expire = now_ms;
t->expire = tick_add(now_ms, 0);
task_wakeup(t, TASK_WOKEN_TIMER);
}
} else if (strcmp(args[arg], "wake") == 0) {