mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-04 12:41:00 +02:00
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:
parent
74a5a9828b
commit
2b5e6315a3
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user