]> git.kaiwu.me - haproxy.git/commit
MEDIUM: filters: Parse and finalize filter-config 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)
commitb3075cf7fcbc0e39d971bdc55b951f8e3ea52845
tree7bccf3da76fc0559e1ff646dfb0f0952a4f79447
parent52124978c9cf12aa14193accd9949295e855ad1f
MEDIUM: filters: Parse and finalize filter-config instances

Add filter-config with a class, optional id, enabled marker and raw class
arguments. Require identifiers for classes allowing multiple instances,
reject duplicate local declarations, and allow inherited or implicit ones to
be replaced locally.

After configuration parsing, validate class multiplicity, call each class
parser once per instance and flatten the per-side class trees. Extend check,
init, per-thread and deinit callbacks to the finalized instances, without
processing instances present on both sides twice. Let FCGI lookup find
finalized instances when no legacy filter is configured.

Legacy filters and instances coexist, and the stream evaluation path is not
switched to instances by this patch. The enabled state is recorded but
runtime attachment and legacy/instance selection remain to be implemented.
src/fcgi-app.c
src/filters.c