]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: spoe: Improve error detection in SPOE applet on client abort
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 26 Aug 2025 13:49:15 +0000 (15:49 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 26 Aug 2025 14:12:18 +0000 (16:12 +0200)
commit49db9739d0591d15907e0241f3bcc8e7adb4fd3a
treeeb0d9f1d0fc5bb5b45ae2d4b0a0ecb91a9297412
parent7a30c10587997cf104197106475b611c7091ae93
BUG/MEDIUM: spoe: Improve error detection in SPOE applet on client abort

It is possible to interrupt a SPOE applet without reporting an error. For
instance, when the client of the parent stream aborts. Thanks to this patch,
we take care to report an error on the SPOE applet to be sure to interrupt
the processing. It is especially important if the connection to the agent is
queued. Thanks to 886a248be ("BUG/MEDIUM: mux-spop: Reject connection
attempts from a non-spop frontend"), it is no longer an issue. But there is
no reason to continue to process if the parent stream is gone.

In addition, in the SPOE filter, if the processing is interrupted when the
filter is destroyed, no specific status code was set. It is not a big deal
because it cannot be logged at this stage. But it can be used to notify the SPOE
applet. So better to set it.

This patch should be backported as far as 3.1.
src/flt_spoe.c