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.
This commit is contained in:
Willy Tarreau 2022-07-15 17:18:23 +02:00
parent acd644197f
commit 740038c8b9

View File

@ -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;
}