]> git.kaiwu.me - haproxy.git/commit
MINOR: flt-http-comp: Stop to explicitly loop on the proxy's filter_configs list
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 27 Oct 2026 10:54:35 +0000 (11:54 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 27 Oct 2026 13:08:45 +0000 (14:08 +0100)
commit479eccf7ff79fac43650eb98c4ec310b640fb733
tree9249d8e630c9964c42cdd60c4a2a26b9ecc8de09
parent28eaedd1c0c9966d9043588b313940accd7b09ff
MINOR: flt-http-comp: Stop to explicitly loop on the proxy's filter_configs list

The "compression", "comp-req" and "comp-res" filter keyword parsers
scanned the filter_configs list of the proxy by hand to detect an
already declared compression filter configuration, matching on the
filter ids.

The parsers now use flt_find_conf(), the supported way to find a filter
configuration, which walks the right list depending on the filter mode of
the proxy. The "compression" duplicate check resolves the two possible
configurations with two successive lookups, one per direction.
src/flt_http_comp.c