]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: spoe: Don't rely on stream's expiration to detect processing timeout
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 14 Mar 2024 09:21:56 +0000 (10:21 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 15 Mar 2024 08:09:22 +0000 (09:09 +0100)
commit3c066b1e341ce2093197d565f2711e6174c39d5b
tree934d65f1cca8eea0cf27364d69ba128738bf35bf
parent7dae3ceaa08ead56104bae6471b236de536c3f51
BUG/MEDIUM: spoe: Don't rely on stream's expiration to detect processing timeout

On stream side, the SPOE filter relied on the stream's expiration date to be
woken up and be able to detect processing timeout. However, the stream
expiration date must not be updated this way. Mainly because it may be
overwritten at the end of process_stream(). In the worst case, it is set to
TICK_ETERNITY for any reason. In this case, it is impossible to detect the
SPOE filter must time out and abort the processing.

The right way to do is to set an analysis expiration date on the
corresponding channel, depending on the direction. This expiration date will
be used to compute the stream's expiration date at the end of
process_stream().

This patch may be related to issue #2478. It must be backported to all
stable versions.
src/flt_spoe.c