]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: spoe: Remove idle applets from idle list when HAProxy is stopping
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 28 Feb 2018 12:33:26 +0000 (13:33 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 28 Feb 2018 15:20:33 +0000 (16:20 +0100)
commit7d9f1ba246055046eed547fa35aa546683021dce
tree89709489bc24a63d1dc4ddfb637be42f26721813
parentca6ef506610e9d78f99b7ab2095ce0f8a47e18df
BUG/MEDIUM: spoe: Remove idle applets from idle list when HAProxy is stopping

In the SPOE applet's handler, when an applet is switched from the state IDLE to
PROCESSING, it is removed for the list of idle applets. But when HAProxy is
stopping, this applet can be switched to DISCONNECT. In this case, we also need
to remove it from the list of idle applets. Else the applet is removed but still
present in the list. It could lead to a segmentation fault or an infinite loop,
depending the code path.
src/flt_spoe.c