From: Willy Tarreau Date: Thu, 24 Nov 2016 14:35:16 +0000 (+0100) Subject: BUG/MINOR: cli: wake up the CLI's task after a timeout update X-Git-Tag: v1.7.0~66 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2b5e6315a3bf9365d20e3f9e503ba914fc514eeb;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/dumpstats.c b/src/dumpstats.c index fe1ad48dcb..6525939a54 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 {