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

addons/wurfl/wurfl.c

index 31a61c4a61b0ea8bfcbe42718f82f62e0037e15d..63c72291b9256283898cbe9063963cb026523413 100644 (file)
@@ -276,6 +276,11 @@ static int ha_wurfl_init(void)
                return ERR_WARN;
        }
 
+       if ((global.tune.options & GTUNE_NO_TG_FD_SHARING) &&
+           global.nbtgroups > 1) {
+               ha_alert("WURFL is incompatible with tune.fd.tables per-thread-group\n");
+               return (ERR_FATAL | ERR_ALERT);
+       }
        ha_notice("WURFL: Engine handler created - API version %s\n", wurfl_get_api_version() );
 
        // set wurfl data file