]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: apppet: Improve spinning loop detection with the new API
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 10 Oct 2025 12:32:04 +0000 (14:32 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 10 Oct 2025 12:41:15 +0000 (14:41 +0200)
commit54b7539d64d70f033955a0bfe7d0f19d7eef2328
tree35f965ca4259934fbc861d5feeeb68c2d9d823f5
parentdfe7fa9349b73858fa40e3ddcc2cce913c5f8af8
BUG/MEDIUM: apppet: Improve spinning loop detection with the new API

Conditions to detect the spinning loop for applets based on the new API are
not accurrate. We cannot continue to check the channel's buffers state to
know if an applet has made some progress. At least, we must also check the
applet's buffers.

After digging to find the right way to do, it was clear that the best is to
use something similar to what is performed for the streams, namely, checking
read and write events. And in fact, it is quite easy to do with the new
API. So let's do so.

This patch must be backported as far as 3.0.
src/applet.c