summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faulet <cfaulet@haproxy.com>2023-05-11 09:08:28 +0200
committerChristopher Faulet <cfaulet@haproxy.com>2023-05-11 09:22:46 +0200
commit7f4ffad46e98b1004a348d4853693035400a0443 (patch)
treeb81fc8ed2f398a501bbf934f822679fc86d416e0
parent16e314150aca771d6509ca79897006f78fd9441c (diff)
downloadhaproxy-7f4ffad46e98b1004a348d4853693035400a0443.tar.gz
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.
-rw-r--r--src/flt_spoe.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/flt_spoe.c b/src/flt_spoe.c
index 6ab1cfb3e..301d950bd 100644
--- a/src/flt_spoe.c
+++ b/src/flt_spoe.c
@@ -2987,6 +2987,14 @@ spoe_sig_stop(struct sig_handler *sh)
while (p) {
struct flt_conf *fconf;
+ /* SPOE filter are not initialized for disabled proxoes. Move to
+ * the next one
+ */
+ if (p->flags & PR_FL_DISABLED) {
+ p = p->next;
+ continue;
+ }
+
list_for_each_entry(fconf, &p->filter_configs, list) {
struct spoe_config *conf;
struct spoe_agent *agent;