]> git.kaiwu.me - haproxy.git/commit
MINOR: filters: initialize the filter classes before the register stage
authorMiroslav Zagorac <mzagorac@haproxy.com>
Fri, 16 Oct 2026 19:32:49 +0000 (21:32 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 19 Oct 2026 19:54:04 +0000 (21:54 +0200)
commit8a32f6c6216fda4016f96936ff2846b82d84a31c
tree906d05b01a0eaa8865e062e2e8714d0f4994d1d5
parente752ebe04b34a388399f414a89b7b760813f140a
MINOR: filters: initialize the filter classes before the register stage

The filter classes of HAProxy are initialized from the register stage,
where the internal classes are registered too. A module registering its
own class from that stage is refused, since whether it runs before or
after this initialization depends on the link order, and the objects of an
addon are linked first: its classes are registered too early, always.

Initializing the classes from the prepare stage leaves the whole register
stage to the modules, which then register their classes in time for
"haproxy -vv" to report them, the filter classes being listed while the
arguments are parsed, between the register and the init stages.

Nothing else moves: the classes are initialized in the same order, and the
placement of a class still decides the evaluation order of the filters.
The filter documentation was updated to match.
doc/configuration.txt
doc/internals/api/filters.txt
src/filters.c