X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fconfig.c;h=3b81fec3f1fcb67fbf64ba28ac1759a722a9c2da;hb=5adb1c1c9e550d63bc95741027be1ee0825a8e0a;hp=a9ad7f7115f16551ccd41cad69b9995e9fbd0b79;hpb=bd6bd2f8902c222e2b399195ada70f2ece881b0f;p=citadel.git diff --git a/citadel/config.c b/citadel/config.c index a9ad7f711..3b81fec3f 100644 --- a/citadel/config.c +++ b/citadel/config.c @@ -78,6 +78,14 @@ void get_config(void) { config.c_maxmsglen = INT_MAX; if (config.c_maxmsglen < 8192) config.c_maxmsglen = 8192; + + /* Default number of worker threads is 15 and the minimum is 5 + */ + /* Can't have fewer than two worker threads */ + if (config.c_worker_threads == 0) + config.c_worker_threads = 15; + if (config.c_worker_threads < 5) + config.c_worker_threads = 5; }