]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: stconn: Don't forward channel data if input data must be filtered
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 15 Apr 2024 17:09:01 +0000 (19:09 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 16 Apr 2024 09:36:54 +0000 (11:36 +0200)
commit50d8c187423d6b7e9b1083e05370885f6d12e844
tree16918ff477dc9e235468431572db0a7d35e84388
parentffe0874cfba4a165eb489deacc45d562d668ef68
BUG/MEDIUM: stconn: Don't forward channel data if input data must be filtered

Once data are received and placed in a channel buffer, if it is possible,
outgoing data are immediately forwarded. But we must take care to not do so
if there is also pending input data and a filter registered on the
channel. It is especially important for HTX streams because the HTX may be
altered, especially the extra field. And it is indeed an issue with the HTTP
compression filter and the H1 multiplexer. The wrong chunk size may be
announced leading to an internal error.

This patch should fix the issue #2530. It must be backported to all stable
versions.
src/stconn.c