aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_post_loop.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/test_post_loop.c')
-rw-r--r--src/testcurl/test_post_loop.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/testcurl/test_post_loop.c b/src/testcurl/test_post_loop.c
index c9a1283e..c3b70687 100644
--- a/src/testcurl/test_post_loop.c
+++ b/src/testcurl/test_post_loop.c
@@ -37,6 +37,13 @@
37#include <unistd.h> 37#include <unistd.h>
38#endif 38#endif
39 39
40#if defined(CPU_COUNT) && (CPU_COUNT+0) < 2
41#undef CPU_COUNT
42#endif
43#if !defined(CPU_COUNT)
44#define CPU_COUNT 2
45#endif
46
40#define POST_DATA "<?xml version='1.0' ?>\n<xml>\n<data-id>1</data-id>\n</xml>\n" 47#define POST_DATA "<?xml version='1.0' ?>\n<xml>\n<data-id>1</data-id>\n</xml>\n"
41 48
42#define LOOPCOUNT 1000 49#define LOOPCOUNT 1000
@@ -242,7 +249,7 @@ testMultithreadedPoolPost ()
242 cbc.size = 2048; 249 cbc.size = 2048;
243 d = MHD_start_daemon (MHD_USE_SELECT_INTERNALLY | MHD_USE_DEBUG, 250 d = MHD_start_daemon (MHD_USE_SELECT_INTERNALLY | MHD_USE_DEBUG,
244 1081, NULL, NULL, &ahc_echo, NULL, 251 1081, NULL, NULL, &ahc_echo, NULL,
245 MHD_OPTION_THREAD_POOL_SIZE, 4, MHD_OPTION_END); 252 MHD_OPTION_THREAD_POOL_SIZE, CPU_COUNT, MHD_OPTION_END);
246 if (d == NULL) 253 if (d == NULL)
247 return 16; 254 return 16;
248 for (i = 0; i < LOOPCOUNT; i++) 255 for (i = 0; i < LOOPCOUNT; i++)