libmicrohttpd

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

commit 49edf6b94d0aa8588a0ac31801a597c99d405c44
parent 55e624e7d0c25804d242d453cb043779cf67fede
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Sun, 26 May 2019 16:45:03 +0300

perf_get_concurrent: fixed exhausting of local ports on multi-core machines

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

diff --git a/src/testcurl/perf_get_concurrent.c b/src/testcurl/perf_get_concurrent.c @@ -52,8 +52,13 @@ /** * How many rounds of operations do we do for each * test (total number of requests will be ROUNDS * PAR). + * Ensure that free ports are not exhausted during test. */ +#if CPU_COUNT > 8 +#define ROUNDS (1 + (30000 / 12) / CPU_COUNT) +#else #define ROUNDS 500 +#endif /** * How many requests do we do in parallel?