]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cli: always reset the applet task's timeout
authorWilly Tarreau <w@1wt.eu>
Thu, 8 Feb 2024 19:53:31 +0000 (20:53 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 8 Feb 2024 19:53:31 +0000 (20:53 +0100)
commit02b31fa0030549938bd3cda0125a8d59ed3a8254
treee06abaf371a3a25f6c5a0b7e721f9e77d0a8bc55
parent3d91ffdaff471e95bfd6eb6f9a98eaa4e035aa3d
MINOR: cli: always reset the applet task's timeout

The CLI applet doesn't make use of its timeout at all, only the stream
does. That's a wonder because it allows any command's I/O handler to
trivially set a wakeup timer by simply touching the task's ->expire
field, and the I/O handler will automatically be woken up again. The
only condition for this is that we properly take care of clearing that
timeout whenever we finish processing a command and switch back to the
PROMPT state. That's what this patch does.
src/cli.c