]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: listener: do not restrict CLI to first group anymore
authorWilly Tarreau <w@1wt.eu>
Sat, 22 Apr 2023 20:27:31 +0000 (22:27 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 23 Apr 2023 07:46:15 +0000 (09:46 +0200)
Now that we're able to run listeners on any set of groups, we don't need
to maintain a special case about the stats socket anymore. It used to be
forced to group 1 only so as to avoid startup failures in case several
groups were configured, but if it's done now, it will automatically bind
the needed FDs to have one per group so this is no more an issue.

src/listener.c

index 994e97a348fc73a548921cf9e734fbd4e42bd4df..bfb5ece835b1a1a7e89fc26b47179e2686fc33b3 100644 (file)
@@ -1653,7 +1653,7 @@ int bind_complete_thread_setup(struct bind_conf *bind_conf, int *err_code)
        char *err;
 
        err = NULL;
-       if (thread_resolve_group_mask(&bind_conf->thread_set, (fe == global.cli_fe) ? 1 : 0, &err) < 0) {
+       if (thread_resolve_group_mask(&bind_conf->thread_set, 0, &err) < 0) {
                ha_alert("%s '%s': %s in 'bind %s' at [%s:%d].\n",
                         proxy_type_str(fe),
                         fe->id, err, bind_conf->arg, bind_conf->file, bind_conf->line);