]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: filters: fix silent compression disable with legacy "filter compression...
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 14 Oct 2026 09:55:48 +0000 (11:55 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 16 Oct 2026 17:07:18 +0000 (19:07 +0200)
commitec5c809c67f49c74adbe829836a2b06989a29fba
tree95de6a04fc740893bdcfc8f949d3e45d2a01e002
parentbca0aaef2fb8f8bbcd5aec927b3a8323b2d68b46
BUG/MINOR: filters: fix silent compression disable with legacy "filter compression" first

The legacy "filter compression" declaration stored a pointer on the proxy
compression options in the filter configuration at parsing time. When the
"compression" directives were placed after the filter declaration, the
options were not allocated yet, so the filter kept a NULL pointer and the
compression was silently disabled at runtime.

The compression options are now allocated when the filter is declared, the
"compression" directives parsed later reuse the same structure, in both
declaration orders.

This bug was introduced by the commit d759f474 ("MINOR: flt-http-comp: Use
compression options as filter config"), which started to store the pointer
on the proxy compression options in the filter configuration and to check
it at runtime, while it was previously always NULL and the options were
resolved at runtime through the frontend and backend proxies. There is no
need to backport this fix, it is a 3.5-specific issue.
reg-tests/compression/filter-before-options.vtc [new file with mode: 0644]
src/flt_http_comp.c