From 740038c8b98bbf100a551f41fdd40817b99ce879 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Fri, 15 Jul 2022 17:18:23 +0200 Subject: [PATCH] MINOR: listener/config: make "thread" always support up to LONGBITS The difference is subtle but in one place there was MAXTHREADS and this will not work anymore once it goes over 64. --- src/listener.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/listener.c b/src/listener.c index 59c31cf03..6b088026f 100644 --- a/src/listener.c +++ b/src/listener.c @@ -1808,8 +1808,8 @@ static int bind_parse_thread(char **args, int cur_arg, struct proxy *px, struct memprintf(err, "'%s' multiple thread-groups are not supported", args[cur_arg + 1]); return ERR_ALERT | ERR_FATAL; } - - if (parse_process_number(sep, &thread, MAX_THREADS, NULL, err)) { + + if (parse_process_number(sep, &thread, LONGBITS, NULL, err)) { memprintf(err, "'%s' : %s", sep, *err); return ERR_ALERT | ERR_FATAL; }