From: Olivier Houchard Date: Tue, 18 Aug 2026 15:42:03 +0000 (+0200) Subject: MINOR: backend: Do not bother stopping if there is only one thread group X-Git-Tag: v3.5-dev5~11 X-Git-Url: https://git.kaiwu.me/?a=commitdiff_plain;h=ff88d845a2646b6e34cccce12ff8e9fc80033795;p=haproxy.git MINOR: backend: Do not bother stopping if there is only one thread group We forbid sharing idle connection across thread groups if there is per-thread group file descriptor tables, and that will cause an error, but don't bother doing that if after all, there is only one thread group. --- diff --git a/src/cfgparse.c b/src/cfgparse.c index ee86a7b5a..bf5d46e39 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -2345,9 +2345,10 @@ int check_config_validity() } if ((global.tune.tg_takeover == FULL_THREADGROUP_TAKEOVER) && - (global.tune.options & GTUNE_NO_TG_FD_SHARING)) { + (global.tune.options & GTUNE_NO_TG_FD_SHARING) && + (global.nbtgroups > 1)) { err_code |= ERR_FATAL | ERR_ALERT; - ha_alert("tune.fd.tables per-thread-group is incompatible with tune.idle-pool shared full\n"); + ha_alert("tune.fd.tables per-thread-group is incompatible with tune.idle-pool-shared full\n"); goto out; } pool_head_requri = create_pool("requri", global.tune.requri_len , MEM_F_SHARED);