]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: tree-wide: Use the buffer size instead of global setting when possible
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 28 Jan 2026 09:54:41 +0000 (10:54 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 18 Feb 2026 12:26:20 +0000 (13:26 +0100)
commit6bf450b7fea1f2a2432bc102b49760e704946039
tree496c9b611e6204f81f9dfdf04623e05008f41452
parentfc89ff76c7038fef8aca51ca1d07c21e88458525
MINOR: tree-wide: Use the buffer size instead of global setting when possible

At many places, we rely on global.tune.bufsize value instead of using the buffer
size. For now, it is not a problem. But if we want to be able to deal with
buffers of different sizes, it is good to reduce as far as possible dependencies
on the global value. most of time, we can use b_size() or c_size()
functions. The main change is performed on the error snapshot where the buffer
size was added into the error_snapshot structure.
include/haproxy/channel.h
include/haproxy/proxy-t.h
include/haproxy/sc_strm.h
src/hlua.c
src/http_fetch.c
src/mux_h1.c
src/mux_h2.c
src/payload.c
src/proxy.c
src/ssl_sock.c