gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] 01/02: Even more reduced number of test iterations on W3


From: gnunet
Subject: [libmicrohttpd] 01/02: Even more reduced number of test iterations on W32 to avoid ports exhaust
Date: Wed, 23 Dec 2020 20:41:59 +0100

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

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit aee82048c22265757b1b2f99aa709ccdbf6c48ff
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Wed Dec 23 21:02:40 2020 +0300

    Even more reduced number of test iterations on W32 to avoid ports exhaust
---
 src/testcurl/perf_get.c            | 8 ++++++++
 src/testcurl/perf_get_concurrent.c | 2 +-
 src/testcurl/test_add_conn.c       | 4 ++++
 3 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/src/testcurl/perf_get.c b/src/testcurl/perf_get.c
index d80db06e..0627bf53 100644
--- a/src/testcurl/perf_get.c
+++ b/src/testcurl/perf_get.c
@@ -62,7 +62,15 @@
  * How many rounds of operations do we do for each
  * test?
  */
+#if MHD_CPU_COUNT > 8
+#ifndef _WIN32
+#define ROUNDS (1 + (30000 / 12) / MHD_CPU_COUNT)
+#else /* _WIN32 */
+#define ROUNDS (1 + (3000 / 12) / MHD_CPU_COUNT)
+#endif /* _WIN32 */
+#else
 #define ROUNDS 500
+#endif
 
 /**
  * Do we use HTTP 1.1?
diff --git a/src/testcurl/perf_get_concurrent.c 
b/src/testcurl/perf_get_concurrent.c
index c58890cc..0cfd1366 100644
--- a/src/testcurl/perf_get_concurrent.c
+++ b/src/testcurl/perf_get_concurrent.c
@@ -59,7 +59,7 @@
 #ifndef _WIN32
 #define ROUNDS (1 + (30000 / 12) / MHD_CPU_COUNT)
 #else /* _WIN32 */
-#define ROUNDS (1 + (10000 / 12) / MHD_CPU_COUNT)
+#define ROUNDS (1 + (3000 / 12) / MHD_CPU_COUNT)
 #endif /* _WIN32 */
 #else
 #define ROUNDS 500
diff --git a/src/testcurl/test_add_conn.c b/src/testcurl/test_add_conn.c
index 6b9ef45d..c81939d4 100644
--- a/src/testcurl/test_add_conn.c
+++ b/src/testcurl/test_add_conn.c
@@ -1119,6 +1119,7 @@ main (int argc, char *const *argv)
   verbose = ! has_param (argc, argv, "-q") || has_param (argc, argv, 
"--quiet");
   if (cleanup_test)
   {
+#ifndef _WIN32
     /* Find system limit for number of open FDs. */
 #if defined(HAVE_SYSCONF) && defined(_SC_OPEN_MAX)
     sys_max_fds = sysconf (_SC_OPEN_MAX);
@@ -1135,6 +1136,9 @@ main (int argc, char *const *argv)
       if (2 > CLEANUP_MAX_DAEMONS (sys_max_fds))
         return 77; /* Multithreaded test cannot be run */
     }
+#else  /* _WIN32 */
+    sys_max_fds = 120; /* W32 has problems with ports exhaust */
+#endif /* _WIN32 */
   }
   if (0 != curl_global_init (CURL_GLOBAL_WIN32))
     return 99;

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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