]> git.kaiwu.me - haproxy.git/commit
MINOR: htx: Add macros for the header/trailer name and value max lengths
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 17 Sep 2026 06:44:23 +0000 (08:44 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 18 Sep 2026 15:05:18 +0000 (17:05 +0200)
commitdee32a05d7ed2391801ea40a631b9dd468e8312b
tree939ac56ad62aeab2384e026a1ff6cf59a1c44bb6
parent89f19bea8c1e05947d206a38883d2107bc5fd824
MINOR: htx: Add macros for the header/trailer name and value max lengths

The maximum length of the name and the value of a header or a trailer were
hardcoded in the different places where they are tested. Let's define
HTX_HDR_NAME_MAX_LEN and HTX_HDR_VALUE_MAX_LEN to avoid these magic values
and document why these limits exist.
include/haproxy/htx-t.h
include/haproxy/htx.h
src/htx.c