]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: mux-spop: Properly detect truncated frames on demux to report error
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 14 May 2025 07:22:45 +0000 (09:22 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 14 May 2025 09:47:41 +0000 (11:47 +0200)
commit16314bb93c2c2c47c648da880ab55bf2ac01d9d4
treecb0150b14d4ccef29c7dbd742a156c95951e7729
parent71feb49a9f0ef1142970fca98ca8eebd516928a3
BUG/MEDIUM: mux-spop: Properly detect truncated frames on demux to report error

There was no test in the demux part to detect truncated frames and to report
an error at the connection level. The SPOP streams were properly switch to
half-closed state. But waiting the associated SPOE applets were woken up and
released, the SPOP connection could be woken up several times for nothing. I
never triggered the watchdog in that case, but it is not excluded.

Now, at the end of the demux function, if a specific test was added to
detect truncated frames to report an error and close the connection.

This patch must be backported to 3.1.
src/mux_spop.c