libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 194b1222c69875e8c3e76ba4d55ea0e8d136ac16
parent 4453fd20099226ffd7daaed6699311c861a77fcd
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Wed,  6 Sep 2023 17:44:53 +0300

perf_replies: disabled limit for maximum number of automatic threads

Diffstat:
Msrc/tools/perf_replies.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/tools/perf_replies.c b/src/tools/perf_replies.c @@ -267,7 +267,9 @@ static unsigned int num_threads = 0; static unsigned int get_num_threads (void) { +#if 0 /* disalbed code */ static const unsigned int max_threads = 32; +#endif /* disalbed code */ if (0 < num_threads) return num_threads; @@ -291,12 +293,14 @@ get_num_threads (void) num_threads = num_proc_cpus; } } +#if 0 /* disalbed code */ if (max_threads < num_threads) { printf ("Number of threads are limited to %u as more threads " "are unlikely to improve the performance.\n", max_threads); num_threads = max_threads; } +#endif /* disalbed code */ return num_threads; }