]> git.kaiwu.me - haproxy.git/commitdiff
MINOR: addons/51d: Forbid use with per tgroup fd tables
authorOlivier Houchard <ohouchard@haproxy.com>
Wed, 19 Aug 2026 14:14:51 +0000 (16:14 +0200)
committerOlivier Houchard <cognet@ci0.org>
Wed, 19 Aug 2026 14:27:42 +0000 (16:27 +0200)
It is not known if 51d uses its own file descriptors, so for the time
being, forbid its usage with tune.fd.tables per-thread-group.

addons/51degrees/51d.c

index ad49db1dd7738935c7f39baf68007acda4a2ea06..37f00a645466d7f3f8b1b18af784fdd94510b4d4 100644 (file)
@@ -932,6 +932,11 @@ static int init_51degrees(void)
                return (ERR_FATAL | ERR_ALERT);
        }
 
+       if ((global.tune.options & GTUNE_NO_TG_FD_SHARING) &&
+           global.nbtgroups > 1) {
+               ha_alert("51Degrees is incompatible with tune.fd.tables per-thread-group\n");
+               return (ERR_FATAL | ERR_ALERT);
+       }
        if (!LIST_ISEMPTY(&global_51degrees.property_names)) {
                i = 0;
                list_for_each_entry(name, &global_51degrees.property_names, list)