Re: [PATCH]: BUILD : deviceatlas allow MT support

2017-11-27 Thread Willy TARREAU
On Mon, Nov 27, 2017 at 12:53:27PM +, David Carlier wrote:
> Following up the 1.8 release, deviceatlas being MT safe, we enable this new
> Haproxy feature from this module.
> 
> Needs to be backported to 1.8 branch.

Thanks very much for testing David, now merged in master an 1.8.

Willy



[PATCH]: BUILD : deviceatlas allow MT support

2017-11-27 Thread David Carlier
Hi,

Following up the 1.8 release, deviceatlas being MT safe, we enable this new
Haproxy feature from this module.

Needs to be backported to 1.8 branch.

Thanks in advance.

Regards.
From b2e649193e5707244638122d3df04e1224bd060d Mon Sep 17 00:00:00 2001
From: David Carlier 
Date: Mon, 27 Nov 2017 11:55:59 +
Subject: [PATCH] BUILD/MINOR: deviceatlas: enable thread support

DeviceAtlas detection being multi-thread safe, we enable the
new thread feature support.
Needs to be backported to 1.8 branch.
---
 src/da.c | 6 --
 1 file changed, 6 deletions(-)

diff --git a/src/da.c b/src/da.c
index 0669cba2..685a79d1 100644
--- a/src/da.c
+++ b/src/da.c
@@ -121,12 +121,6 @@ static int init_deviceatlas(void)
 		size_t atlasimglen;
 		da_status_t status;
 
-		if (global.nbthread > 1) {
-			ha_alert("deviceatlas: multithreading is not supported for now.\n");
-			err_code |= ERR_ALERT | ERR_FATAL;
-			goto out;
-		}
-
 		jsonp = fopen(global_deviceatlas.jsonpath, "r");
 		if (jsonp == 0) {
 			ha_alert("deviceatlas : '%s' json file has invalid path or is not readable.\n",
-- 
2.14.1