BUG/MINOR: spoe: Allow applet creation when closing the last one during stopping
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 19 Feb 2025 10:33:02 +0000 (11:33 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 19 Feb 2025 12:08:33 +0000 (13:08 +0100)
commite2ceec1309451f8c304f2fdcef4ced828d57f409
tree6da20651dc7002991607dd39d757b30c14f9a99e
parente9b015c2ff8d0a66ce82cbd5fa12cc619c8fc363
BUG/MINOR: spoe: Allow applet creation when closing the last one during stopping

When the last SPOE applet is closed, for any reason, if there are still some
pending messages, in the shared sending queueu or the shared waiting queue, a
new applet is automatically created to be able to pocess these messages. Howver,
this was not performed when HAProxy was stopping. But it was an error because it
was then possible to abort some messages and reported them on error with the
status code set to 256.

So, now, it is still possible to create applet, if necessary, when HAProxy is
stopping.

This patch should partially fix the issue #2868. It must be backported to all
stable versions.
src/flt_spoe.c