BUG/MEDIUM: compression: Add a flag to know the filter is still processing data
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 9 Jun 2021 15:12:44 +0000 (17:12 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 10 Jun 2021 06:57:55 +0000 (08:57 +0200)
commit12554d00f6ed16324a0dfbafb5230f8f0136e4ba
treec9b106f2ff0494477ebd68535e44f0af88d9b4b5
parent402740c3ad9bc0d294d0c161e4904c06396a0791
BUG/MEDIUM: compression: Add a flag to know the filter is still processing data

Since the commit acfd71b97 ("BUG/MINOR: http-comp: Preserve
HTTP_MSGF_COMPRESSIONG flag on the response"), there is no more flag to know
when the compression ends. This means it is possible to finish the
compression several time if there are trailers.

So, we reintroduce almost the same mechanism but with a dedicated flag. So
now, there is a bits field in the compression filter context.

The commit above is marked to be backported as far as 2.0. Thus this patch
must also be backported as far as 2.0.
src/flt_http_comp.c