From 6bdf9452c09030d4944e6d045b6f60f55c38e97a Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Wed, 6 Jul 2022 11:52:24 +0200 Subject: [PATCH] MINOR: cli/threads: always bind CLI to thread group 1 When using multiple groups, the stats socket starts to emit errors and it's not natural to have to touch the global section just to specify "thread 1/all". Let's pre-attach these sockets to thread group 1. This will cause errors when trying to change the group but this really is not a problem for now as thread groups are not enabled by default. This will make sure configs remain portable and may possibly be relaxed later. --- src/cli.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cli.c b/src/cli.c index abec46bf9..722d0c63d 100644 --- a/src/cli.c +++ b/src/cli.c @@ -492,6 +492,7 @@ static int cli_parse_global(char **args, int section_type, struct proxy *curpx, } bind_conf->level &= ~ACCESS_LVL_MASK; bind_conf->level |= ACCESS_LVL_OPER; /* default access level */ + bind_conf->bind_tgroup = 1; // bind to a single group in any case if (!str2listener(args[2], global.cli_fe, bind_conf, file, line, err)) { memprintf(err, "parsing [%s:%d] : '%s %s' : %s\n",