Skip to content

Commit 808a7cc

Browse files
committed
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.
1 parent 2f287f1 commit 808a7cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/debug.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1420,7 +1420,7 @@ static int debug_parse_cli_task(char **args, char *payload, struct appctx *appct
14201420
else if (task_ok) {
14211421
/* unlink task and wake with timer flag */
14221422
__task_unlink_wq(t);
1423-
t->expire = now_ms;
1423+
t->expire = tick_add(now_ms, 0);
14241424
task_wakeup(t, TASK_WOKEN_TIMER);
14251425
}
14261426
} else if (strcmp(args[arg], "wake") == 0) {

0 commit comments

Comments
 (0)