]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Don't set a default value
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 31 May 2023 22:40:44 +0000 (18:40 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 31 May 2023 22:40:44 +0000 (18:40 -0400)
doc/antora/modules/raddb/pages/radiusd.conf.adoc
raddb/radiusd.conf.in
src/lib/server/main_config.c

index 3325c3f50d426d042a0590e2d4aefcb938f75607..1845ffa38431975efac413301e53603e66d638d5 100644 (file)
@@ -669,7 +669,7 @@ security {
 $INCLUDE clients.conf
 thread pool {
 #      num_networks = 1
-       num_workers = 0
+#      num_workers = 1
 #      openssl_async_pool_init = 64
 #      openssl_async_pool_max = 1024
 }
index 59dae8460646a5b0e040b4f1aca38cc14f197ea9..1491405aa6f19d1275ec006844ffb526ea4ed793 100644 (file)
@@ -523,10 +523,10 @@ thread pool {
        #  non-blocking, there is no reason to run hundreds of threads
        #  as in v3.
        #
-       #  When set to 0 the number of workers will be set from the number
-       #  of cores available on the system.
+       #  Defaults to the number of cores available on the system, or,
+       #  1, if this cannot be determined.
        #
-       num_workers = 0
+#      num_workers = 1
 
        #
        #  openssl_async_pool_init:: Controls the initial number of async
index 6813f2dd65a71d8a185e4d9c85eae9c96872355c..dd03814aa12966840c0c4dc7af5c3987521d4ce0 100644 (file)
@@ -432,8 +432,6 @@ static int num_workers_parse(TALLOC_CTX *ctx, void *out, UNUSED void *parent, CO
 
        memcpy(&value, out, sizeof(value));
 
-       fr_assert_msg(value != 0, "Number of workers should never be zero, verify num_workers_dflt called");
-
        /*
         *      If no value is specified, try and
         *      discover it automatically.