]> git.kaiwu.me - haproxy.git/commit
MINOR: chunks: Add function to get a large/regular chunk depending on a buffer
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 2 Jul 2026 14:51:21 +0000 (16:51 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 8 Jul 2026 06:52:06 +0000 (08:52 +0200)
commit2b993de2dafdc3584c06fd56612a7c647627135b
tree1d35cf1a82e01105ba65f64f5331fed61f1c10d7
parentee5cfaf2667bec5930f2ca7aea60ededa1b94ed2
MINOR: chunks: Add function to get a large/regular chunk depending on a buffer

get_best_trash_chunk() function was added to be able to get a large or a
regular chunk depending on a given size but never larget than a given
buffer. It will be usefull in a futur fix, to prevent unexpected large chunk
usage.

alloc_best_trash_chunk() function is similar but instead of returning one of
the static chunks, it allocate it from the corresponding pool, large or
regular.
include/haproxy/chunk.h
src/chunk.c