From: Alan T. DeKok Date: Wed, 8 Aug 2018 15:25:33 +0000 (-0400) Subject: bump up max_workers X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2f5e0cd8a89c4076df62853ecda6af29955956c8;p=thirdparty%2Ffreeradius-server.git bump up max_workers and ensure that the limit in the main config is the same as in the network code --- diff --git a/src/lib/io/network.c b/src/lib/io/network.c index 06a51703730..bbc6ccdde09 100644 --- a/src/lib/io/network.c +++ b/src/lib/io/network.c @@ -48,7 +48,7 @@ RCSID("$Id$") #define DEBUG3(fmt, ...) if (nr->lvl >= L_DBG_LVL_3) fr_log(nr->log, L_DBG, fmt, ## __VA_ARGS__) #define ERROR(fmt, ...) fr_log(nr->log, L_ERR, fmt, ## __VA_ARGS__) -#define MAX_WORKERS 32 +#define MAX_WORKERS 64 fr_thread_local_setup(fr_ring_buffer_t *, fr_network_rb) /* macro */ diff --git a/src/lib/server/mainconfig.c b/src/lib/server/mainconfig.c index 3f6532a360d..242d2bea5aa 100644 --- a/src/lib/server/mainconfig.c +++ b/src/lib/server/mainconfig.c @@ -368,7 +368,7 @@ static int num_workers_parse(TALLOC_CTX *ctx, void *out, void *parent, memcpy(&value, out, sizeof(value)); FR_INTEGER_BOUND_CHECK("thread.num_workers", value, >, 0); - FR_INTEGER_BOUND_CHECK("thread.num_workers", value, <, 1024); + FR_INTEGER_BOUND_CHECK("thread.num_workers", value, <, 64); memcpy(out, &value, sizeof(value));