]> git.kaiwu.me - haproxy.git/commit
MINOR: mworker/threads: limit the mworker sockets to group 1
authorWilly Tarreau <w@1wt.eu>
Wed, 6 Jul 2022 09:46:34 +0000 (11:46 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 15 Jul 2022 17:43:10 +0000 (19:43 +0200)
commitdcbd763fe9d133096136c362740d27970aa88ff2
tree4740f884b71c54b8e27b243d5ed83ac9bbf9a580
parent5b09341c025762c29fc5907cdb95386c56d97ee7
MINOR: mworker/threads: limit the mworker sockets to group 1

As a side effect of commit 34aae2fd1 ("MEDIUM: mworker: set the iocb of
the socketpair without using fd_insert()"), a config may now refuse to
start if there are multiple groups configured because the default bind
mask may span over multiple groups, and it is not possible to force it
to work differently.

Let's just assign thread group 1 to the master<->worker sockets so that
the thread bindings automatically resolve to a single group. The same was
done for the master side of the socket even if it's not used. It will
avoid being forgotten in the future.
src/cli.c