]> git.kaiwu.me - haproxy.git/commit
Revert "BUG/MINOR: master/cli: properly trim the '@@' process name in error messages"
authorWilly Tarreau <w@1wt.eu>
Fri, 25 Apr 2025 06:43:48 +0000 (08:43 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 25 Apr 2025 07:05:00 +0000 (09:05 +0200)
commit931d932b3e8b762f69a9b779e858fe29a0712298
tree2227d786b8ce1a9f9b1f18a1ced00f7dffcf6f3b
parent101cc4f3340a52abf6686460853c91ae4058116d
Revert "BUG/MINOR: master/cli: properly trim the '@@' process name in error messages"

This reverts commit 0e94339eaf1c8423132debb6b1b485d8bb1bb7da.

This patch was in fact fixing the symptom, not the cause. The root cause
of the problem is that the parser was processing an incomplete line when
looking for '@@'. When the LF is present, this problem does not exist
as it's properly replaced with a zero. This can be verified using socat
in raw mode:

  socat /tmp/master.sock STDIO,raw,echo=0

Then entering "@@1 show info" one character at a time will immediately
fail on "@@" without going further. A subsequent patch will fix this.
No backport is needed.
src/cli.c