]> git.kaiwu.me - haproxy.git/commit
MEDIUM: flt-decomp: implement decomp-req and decomp-res filters
authorAurelien DARRAGON <adarragon@haproxy.com>
Wed, 12 Aug 2026 15:11:31 +0000 (17:11 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 28 Aug 2026 15:26:38 +0000 (17:26 +0200)
commitf0710d8084c695a90f4cd7e0a908a1e59332c446
treef1609a0a725a583540985343120348189e1d987c
parent545bfa6a6b72eeb85452680ccb89b0c1ee7c4065
MEDIUM: flt-decomp: implement decomp-req and decomp-res filters

Initial filter implementation for decompressing gzip/zlib streams by
leveraging libslz/uslz API.

For now both request and response filters only work for TCP proxies
(with "mode tcp" set). While this is currently not possible to
compress TCP streams using the existing compression filters, thus
making the TCP decompression less useful than the upcoming HTTP
decompression, basic tcp decompression implementation helped during
development to stress test the libslz decompression part without
falling in the haproxy HTX API pitfalls straight away. However it
turns out the TCP decompression may find some use-cases, so let's
keep that for now.

With TCP decompression now supported, we have all the code
infrastructure needed to perform HTTP decompression, which will come
in a later patch.
Makefile
include/haproxy/decompression-t.h
include/haproxy/filters.h
include/haproxy/proxy-t.h
src/flt_decomp.c [new file with mode: 0644]
src/proxy.c