]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: bwlim: Reset analyse expiration date when then channel analyse ends
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 1 Aug 2023 06:16:42 +0000 (08:16 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 1 Aug 2023 09:33:45 +0000 (11:33 +0200)
commitf1bf0b1a6bafedf807d91643b6a09120d2a57e18
treeb0a83149caa175b10ec774742546b8bd91c6c477
parentbbc3e4463e1e745ed4f9d9e2a45be5bd48b6365b
BUG/MEDIUM: bwlim: Reset analyse expiration date when then channel analyse ends

The bandwidth limitation filter sets the analyse expiration date on the
channel to restart the data forwarding and thus limit the bandwidth.
However, this expiration date is not reset on abort. So it is possible to
reuse the same expiration date to set the stream one. If it expired before
the end of the stream, this will lead to a spinning loop on process_stream()
because the task expiration date is always set in past.

To fix the issue, when the analyse ends on a channel, the bandwidth
limitation filter reset the corrsponding analyse expiration date.

This patch should fix the issue #2230. It must be backported as far as 2.7.
src/flt_bwlim.c