libmicrohttpd

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

commit efd1dd05f42d5934494dbda4f63328b8f1080427
parent f7c5d0d6568141b96af5061b3768fe373c4b69f2
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Thu, 24 Sep 2020 16:55:10 +0300

perf_get_concurrent: reduce number of iteration on W32 as free ports
are quickly excused on W32 with large amount of CPU cores

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

diff --git a/src/testcurl/perf_get_concurrent.c b/src/testcurl/perf_get_concurrent.c @@ -56,7 +56,11 @@ * Ensure that free ports are not exhausted during test. */ #if CPU_COUNT > 8 +#ifndef _WIN32 #define ROUNDS (1 + (30000 / 12) / CPU_COUNT) +#else /* _WIN32 */ +#define ROUNDS (1 + (10000 / 12) / CPU_COUNT) +#endif /* _WIN32 */ #else #define ROUNDS 500 #endif