]> git.kaiwu.me - haproxy.git/commit
MINOR: flt-decomp: add support for HTTP decompression
authorAurelien DARRAGON <adarragon@haproxy.com>
Wed, 12 Aug 2026 17:33:37 +0000 (19:33 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 28 Aug 2026 15:26:38 +0000 (17:26 +0200)
commit6488ec12d67c6e1381d070f42940babddf85f91d
tree72fa0e483b6df6f248bc15f2935095240779c3b1
parent1a99a7c0f4b2ec8c11bb79520a9f8e2a3e25ff87
MINOR: flt-decomp: add support for HTTP decompression

Following the previous patch, now we make use of the HTX API to support
HTTP decompression (when proxy is in "mode http"). The decompression
filter works in the similar way as the compression one, except that it
performs decompression instead of compression. As such, we can now use
HAproxy to perform end to end compression: compress input request,
forward it to a distant haproxy node, and let the other haproxy node
decompress request before forwarding it to servers, then do the opposite
operation for the response. This may enable bandwidth optimization when
it matters and the CPU overhead that comes with it is acceptable (check
out libslz writeups to know more about the performance impact).
src/flt_decomp.c