]> git.kaiwu.me - haproxy.git/commit
MEDIUM: cli: Add support for dynamically allocated payloads
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 14 Apr 2026 05:55:23 +0000 (07:55 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 22 Apr 2026 13:19:12 +0000 (15:19 +0200)
commit9b1f0a355306fe716eb7c145db1d41fb2711a462
treea6c240b20093b8e1e7938ef8718515f65c4cec3b
parentc5ae0da622ac363077eba7ed905bdc7b76e4eb6d
MEDIUM: cli: Add support for dynamically allocated payloads

It is now possible to deal with too big payload to fit in a buffer, without
changing the buffer size. By default, a payload up to 128 KB can be
dynamically allocated. "tune.cli.max-payload-size" global parameter can be
used to change this value, with some caution for huge values.

For CLI command handler functions, there is no change at all. A pointer on
the payload is still passed as parameter. Internally, an area is allocated
for the payload only if it is too big.

The payload pattern used to detect the end of the payload is part from the
allocated area.
doc/configuration.txt
doc/management.txt
include/haproxy/applet-t.h
include/haproxy/cli-t.h
include/haproxy/global-t.h
src/cli.c
src/haproxy.c