]> git.kaiwu.me - haproxy.git/commit
MINOR: filters: Mirror implicit filters as filter instances
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 30 Sep 2026 16:10:22 +0000 (18:10 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 9 Oct 2026 14:17:35 +0000 (16:17 +0200)
commitd390381b53c3d6e7928848790e36e9b302c25a3e
tree6c83806904db7c034784fbf80e0c573bd01f9e4c
parente48917ae15b3395b12de1f6e861cbea5d0e2e40f
MINOR: filters: Mirror implicit filters as filter instances

Add a helper to record an enabled implicit instance without replacing an
existing instance of the same class and id. Copy its raw arguments and
source location, and mark it as implicit so an explicit declaration can
replace it.

Create these instances alongside legacy filters for cache rules,
use-fcgi-app, and implicit compression/decompression. Cache and FCGI use the
cache/application name as the id; compression and decompression need none.
Allow the legacy FCGI configuration and a instance to refer to the same
application even though their configuration pointers differ.

Legacy filters are deliberately retained: reconciling the two models and
selecting which one is attached to streams remain unfinished.
include/haproxy/filters.h
src/cache.c
src/fcgi-app.c
src/filters.c
src/flt_decomp.c
src/flt_http_comp.c