BUG/MINOR: http-ana: Disable fast-fwd for unfinished req waiting for upgrade
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 2 Oct 2024 07:57:34 +0000 (09:57 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 2 Oct 2024 08:35:20 +0000 (10:35 +0200)
commit6d98108aa970e448864c9b312e58a5319b3b38b1
tree79803e5e91b5b7c2ac37ecf54addaebe85d2215b
parentf4441c88053b0ee7cd509eedd17f9208136522b4
BUG/MINOR: http-ana: Disable fast-fwd for unfinished req waiting for upgrade

If a request is waiting for a protocol upgrade but it is not finished, the
data fast-forwarding is disabled. Otherwise, the request analyzers will miss
the end of the message.

This case is possible since the commit 01fb1a54 ("BUG/MEDIUM: mux-h1/mux-h2:
Reject upgrades with payload on H2 side only"). Indeed, before, a protocol
upgrade was not allowed for request with payload. But it is now possible and
this comes with a side-effect. It is not really satisfying but for now there
is no other way to sync the muxes and the applicative stream. It seems to be
a reasonnable fix for now, waiting for a deeper refactoring.

This patch must be backported with the commit above.

(cherry picked from commit cea1379cf1fcd5fd9c3b3b104f4c5374bc44bce2)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/http_ana.c