From: Alan T. DeKok Date: Tue, 21 Aug 2012 13:31:09 +0000 (+0200) Subject: Use max_queue_size when initializing the queues X-Git-Tag: release_3_0_0_beta1~1705 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35df325528a3eb42175928f78d53cdf0e57ddb48;p=thirdparty%2Ffreeradius-server.git Use max_queue_size when initializing the queues --- diff --git a/src/main/threads.c b/src/main/threads.c index 51e74fd1460..20ba6b64b21 100644 --- a/src/main/threads.c +++ b/src/main/threads.c @@ -927,10 +927,7 @@ int thread_pool_init(CONF_SECTION *cs, int *spawn_flag) * Allocate multiple fifos. */ for (i = 0; i < RAD_LISTEN_MAX; i++) { - int num = mainconfig.max_requests; - - if (!num || (num > 65536)) num = 65536; - thread_pool.fifo[i] = fr_fifo_create(num, NULL); + thread_pool.fifo[i] = fr_fifo_create(thread_pool.max_queue_size, NULL); if (!thread_pool.fifo[i]) { radlog(L_ERR, "FATAL: Failed to set up request fifo"); return -1;