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

addons/deviceatlas/da.c

index 552d3a95c0f3da0dbb32b6dbfa8d0251f8f5f39c..55429a7c54632b7a235138eda502d892038413bd 100644 (file)
@@ -176,6 +176,12 @@ static int init_deviceatlas(void)
                size_t atlasimglen;
                da_status_t status;
 
+               if ((global.tune.options & GTUNE_NO_TG_FD_SHARING) &&
+                   global.nbtgroups > 1) {
+                       ha_alert("deviceatlas is incompatible with tune.fd.tables per-thread-group\n");
+                       err_code |= ERR_ALERT | ERR_FATAL;
+                       goto out;
+               }
                jsonp = fopen(global_deviceatlas.jsonpath, "r");
                if (unlikely(jsonp == 0)) {
                        ha_alert("deviceatlas : '%s' json file has invalid path or is not readable.\n",