gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [libmicrohttpd] 02/11: perf_get_concurrent: fixed exhaustin


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] 02/11: perf_get_concurrent: fixed exhausting of local ports on multi-core machines
Date: Sun, 26 May 2019 23:46:46 +0200

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit 49edf6b94d0aa8588a0ac31801a597c99d405c44
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Sun May 26 16:45:03 2019 +0300

    perf_get_concurrent: fixed exhausting of local ports on multi-core machines
---
 src/testcurl/perf_get_concurrent.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/testcurl/perf_get_concurrent.c 
b/src/testcurl/perf_get_concurrent.c
index e1c2e997..2c685867 100644
--- 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?

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]