BUG/MEDIUM: listener/thread: bypass shards setting on failed thread resolution
authorWilly Tarreau <w@1wt.eu>
Mon, 6 Feb 2023 17:06:14 +0000 (18:06 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 6 Feb 2023 17:06:14 +0000 (18:06 +0100)
commit655a7bcac15f5718d81ace99c988288e0df98014
treef9ce3bbf50e71a24e48b23cf23c1c98508d84da1
parentf91ab7a08c5ef54b4c268373e250abdae0820960
BUG/MEDIUM: listener/thread: bypass shards setting on failed thread resolution

AurĂ©lien reported that the BUG_ON(!new_ts.nbgrp) added in 2.8-dev3 by
commit 50440457e ("MEDIUM: config: restrict shards, not bind_conf to one
group each") can trigger on some invalid configs where the thread_set on
the "bind" line couldn't be resolved. The reason is that we still enter
the parsing loop (as it was done previously) and we possibly have no
group to work on (which was the purpose of this assertion). There we
need to bypass all this block on such a condition.

No backport is needed.
src/cfgparse.c