]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: cache: Don't request more room than the max allowed
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 9 May 2023 09:31:24 +0000 (11:31 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 9 May 2023 09:53:28 +0000 (11:53 +0200)
commitd6f0557deb671f8a4e5228ac7e107916a555c436
tree79f3bed838e6bceaa9fb6da4cad497ea1dabc6f1
parent7a01ff7921cd72f41ebfd8268b6874ae6c7c139d
BUG/MEDIUM: cache: Don't request more room than the max allowed

Since a recent change on the SC API, a producer must specify the amount of
free space it needs to progress when it is blocked. But, it must take care
to never exceed the maximum size allowed in the buffer. Otherwise, the
stream is freezed because it cannot reach the condition to unblock the
producer.

In this context, there is a bug in the cache applet when it fails to dump a
message. It may request more space than allowed. It happens when the cached
object is too big.

It is a 2.8-specific bug. No backport needed.
src/cache.c