MINOR: spoe: Don't stop disabled proxies
SPOE register a signal handler to be able to stop SPOE applets ASAP during
soft-stop. Disabled proxies must be ignored at this staged because they are
not fully configured.
For now, it is useless but this change is mandatory to fix a bug.
(cherry picked from commit 7f4ffad46e98b1004a348d4853693035400a0443)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 19079545272aa75c52c203878137acb7102f0f75)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 01818a3442237b05f630a0ef651fd32ef9f21bc9)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
diff --git a/src/flt_spoe.c b/src/flt_spoe.c
index 08f08c8..586079c 100644
--- a/src/flt_spoe.c
+++ b/src/flt_spoe.c
@@ -2995,6 +2995,14 @@
while (p) {
struct flt_conf *fconf;
+ /* SPOE filter are not initialized for disabled proxoes. Move to
+ * the next one
+ */
+ if (p->disabled) {
+ p = p->next;
+ continue;
+ }
+
list_for_each_entry(fconf, &p->filter_configs, list) {
struct spoe_config *conf;
struct spoe_agent *agent;