]> git.kaiwu.me - haproxy.git/commit
MEDIUM: filters: eval the legacy backend filters first on the response path
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 19 Oct 2026 13:42:44 +0000 (15:42 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 20 Oct 2026 09:13:30 +0000 (11:13 +0200)
commitfe75a62c006efaa27ed91624bed3d123b2483d21
tree309251b6494eb8615e4cf126a433b1a4e9035ecc
parent4ac7c48ed160e5b9a745e7a152066e9c5cf0c5ec
MEDIUM: filters: eval the legacy backend filters first on the response path

In the legacy filter mode, the backend filter configurations are now
prepended to the response filter list when they are attached to a stream,
preserving their own response order, so a response is evaluated by the
backend filters before the frontend ones. The request path is unchanged.

This mirrors the behavior of the new filter mode on the response path: a
response travels in the opposite direction of a request and reaches the
backend filters first.

The regression tests relying on the response evaluation order of the legacy
mode were updated accordingly, including the mixed cases of the stream-order
test where a legacy frontend uses a instance-mode backend and the other way
around. The filters API documentation was also updated: the frontend filters
are called first on the request path, the backend ones on the response path.
doc/internals/api/filters.txt
reg-tests/filters/lua-eof.vtc
reg-tests/filters/lua-keepalive.vtc
reg-tests/filters/stream-order.vtc
src/filters.c