]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: wurfl: enabled multithreading mode
authorpaulborile <paul.borile@gmail.com>
Thu, 18 Apr 2019 10:18:54 +0000 (12:18 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 23 Apr 2019 09:00:23 +0000 (11:00 +0200)
Initially excluded multithreaded mode is completely supported (libwurfl is fully MT safe).
Internal tests now are run also with multithreading enabled.

src/wurfl.c

index 5de33b4a8d0c12cc048fc5c2b14f171715fc6492..325cba6496a84f02ea4cfdd871e5af2b432530f4 100644 (file)
@@ -277,11 +277,6 @@ static int ha_wurfl_init(void)
                return ERR_WARN;
        }
 
-       if (global.nbthread > 1) {
-               ha_alert("WURFL: multithreading is not supported for now.\n");
-               return (ERR_FATAL | ERR_ALERT);
-       }
-
        if (wurfl_set_root(global_wurfl.handle, global_wurfl.data_file) != WURFL_OK) {
                ha_warning("WURFL: Engine setting root file failed - %s\n", wurfl_get_error_message(global_wurfl.handle));
                send_log(NULL, LOG_WARNING, "WURFL: Engine setting root file failed - %s\n", wurfl_get_error_message(global_wurfl.handle));