]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: stream: Don't release a stream if FLT_END is still registered
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 13 Nov 2019 10:12:32 +0000 (11:12 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 12 Aug 2021 06:54:16 +0000 (08:54 +0200)
commit6fcd2d32805d949672babae8ca70806f8b308870
tree454052f5fc0fb94fec21f66ea66bd197eaa2ffd7
parent47bfd7b9b78c71ffa08d65f0cef475f5d2ae7b80
BUG/MINOR: stream: Don't release a stream if FLT_END is still registered

When at least one filter is registered on a stream, the FLT_END analyzer is
called on both direction when all other analyzers have finished their
processing. During this step, filters may release any allocated elements if
necessary. So it is important to not skip it.

Unfortunately, if both stream interfaces are closed, it is possible to not
wait the end of this analyzer. It is possible to be in this situation if a
filter must wait and prevents the analyzer completion. To fix the bug, we
now wait FLT_END analyzer is no longer registered on both direction before
releasing the stream.

This patch may be backported as far as 1.7, but AFAIK, no filter is affected
by this bug. So the backport seems to be optional for now. In any case, it
should remain under observation for some weeks first.
src/stream.c