]> git.kaiwu.me - haproxy.git/commit
CLEANUP: flt_http_comp: remove duplicate rate limit and CPU usage checks
authorWilly Tarreau <w@1wt.eu>
Mon, 11 May 2026 13:31:16 +0000 (15:31 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 11 May 2026 14:04:19 +0000 (16:04 +0200)
commite32cc2e8058d9c55d9f3c79fa96ab03c06eeb2f6
tree04856fccc0c21c269adf93c6f4e14e4951dff3bd
parent4eb6e8daa348f447f37f2f9cadca6f782955da61
CLEANUP: flt_http_comp: remove duplicate rate limit and CPU usage checks

In comp_prepare_compress_request(), the compression rate limit and CPU
usage checks were duplicated. The first set runs before selecting the
algorithm, and the second set runs after. That's definitely a copy-paste
issue or a patch being applied twice. Let's just drop one.
include/haproxy/compression-t.h
src/flt_http_comp.c