BUG/MINOR: spoe: Be sure to be able to quickly close IDLE applets on soft-stop
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 14 Mar 2024 09:49:01 +0000 (10:49 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 15 Mar 2024 08:09:22 +0000 (09:09 +0100)
commit6547b1429287db162c9e9ac8945d75fb631843ee
treecf5263e0e9864748b064f46745d2dc3aeeae1005
parent3c066b1e341ce2093197d565f2711e6174c39d5b
BUG/MINOR: spoe: Be sure to be able to quickly close IDLE applets on soft-stop

On soft-stop, we try, as far as possible, to process all pending messages
before closing SPOE applets. However, in sync mode, when an applets waiting
for a response receives the ACK frame, it is switched to IDLE state without
checking if it may be closed. In this case, we will wait the idle timeout
before closing de applet, delaying the soft-stop.

To reduce this delay, on soft-stop, IDLE applets are woken up. On the next
wakeup, the applet will try to process pending messages or will be
closed.

This patch should be backported to all stable versions.
src/flt_spoe.c