From 2b5e6315a3bf9365d20e3f9e503ba914fc514eeb Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Thu, 24 Nov 2016 15:35:16 +0100 Subject: [PATCH] BUG/MINOR: cli: wake up the CLI's task after a timeout update When the CLI's timeout is reduced, nothing was done to take the task up to update it. In the past it used to run inside process_stream() so it used to be refreshed. This is not the case anymore since we have the appctx so the task needs to be woken up in order to recompute the new expiration date. This fix needs to be backported to 1.6. --- src/dumpstats.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dumpstats.c b/src/dumpstats.c index fe1ad48dc..6525939a5 100644 --- a/src/dumpstats.c +++ b/src/dumpstats.c @@ -1849,6 +1849,7 @@ static int stats_sock_parse_request(struct stream_interface *si, char *line) } s->req.rto = s->res.wto = 1 + MS_TO_TICKS(timeout*1000); + task_wakeup(s->task, TASK_WOKEN_MSG); // recompute timeouts return 1; } else {