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.
This commit is contained in:
Willy Tarreau 2016-11-24 15:35:16 +01:00
parent 74a5a9828b
commit 2b5e6315a3

View File

@ -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 {