]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cli: Use a full prompt command for bidir connections with workers
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 24 Apr 2025 12:54:55 +0000 (14:54 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 24 Apr 2025 13:09:37 +0000 (15:09 +0200)
commit69a9ec5befdd6403838dce4c98334a14e7427485
treefb4a9702c35460fe51085c413c53213dcf4488d2
parentd3f92894471dd7306f857156a5820c53c10f8d88
MINOR: cli: Use a full prompt command for bidir connections with workers

When a bidirection connection with no command is establisehd with a worker
(so "@@<pid>" alone), a "prompt" command is automatically added to display
the worker's prompt and enter in interactive mode in the worker context.
However, till now, an unfinished command line is sent, with a semicolon
instead of a newline at the end. It is not exactly a bug because this
works. But it is not really expected and could be a problem for future
changes.

So now, a full command line is sent: the "prompt" command finished by a
newline character.
src/cli.c