]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stats: Use a dedicated function to check if output is almost full
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 12 Feb 2024 17:38:11 +0000 (18:38 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 14 Feb 2024 13:22:36 +0000 (14:22 +0100)
commit1465eb570b239f99e4b56beed9b0189b011ead45
treef54c80fc00d967636f68485d7d06217801fb456b
parent3ee3a7937a1e2f1f852c58b239d0e1b933f9a0f0
MINOR: stats: Use a dedicated function to check if output is almost full

This simplifies a bit the stats applet. Because the CLI part was not
refactored yet to use the applet's buffers, there are 3 ways to produce
data:

  * the HTX message for the HTTP stats when zero-copy forwarding is not
    used
  * raw data in the opposite endpoint buffer for the HTTP stats when
    zero-copy forwarding is used
  * the channel buffer when the CLI "show stat" command is evaluated

There is already a dedicated function to take care to copy data at the right
place. There is now also a dedicated function to check us the output buffer
is almost full.
src/stats.c