aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_get_response_cleanup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/test_get_response_cleanup.c')
-rw-r--r--src/testcurl/test_get_response_cleanup.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/testcurl/test_get_response_cleanup.c b/src/testcurl/test_get_response_cleanup.c
index 39d7ece6..32c24ae3 100644
--- a/src/testcurl/test_get_response_cleanup.c
+++ b/src/testcurl/test_get_response_cleanup.c
@@ -48,6 +48,13 @@
48#include <windows.h> 48#include <windows.h>
49#endif 49#endif
50 50
51#if defined(CPU_COUNT) && (CPU_COUNT+0) < 2
52#undef CPU_COUNT
53#endif
54#if !defined(CPU_COUNT)
55#define CPU_COUNT 2
56#endif
57
51#define TESTSTR "/* DO NOT CHANGE THIS LINE */" 58#define TESTSTR "/* DO NOT CHANGE THIS LINE */"
52 59
53static int oneone; 60static int oneone;
@@ -202,7 +209,7 @@ testMultithreadedPoolGet ()
202 209
203 d = MHD_start_daemon (MHD_USE_SELECT_INTERNALLY | MHD_USE_DEBUG, 210 d = MHD_start_daemon (MHD_USE_SELECT_INTERNALLY | MHD_USE_DEBUG,
204 1081, NULL, NULL, &ahc_echo, "GET", 211 1081, NULL, NULL, &ahc_echo, "GET",
205 MHD_OPTION_THREAD_POOL_SIZE, 4, MHD_OPTION_END); 212 MHD_OPTION_THREAD_POOL_SIZE, CPU_COUNT, MHD_OPTION_END);
206 if (d == NULL) 213 if (d == NULL)
207 return 64; 214 return 64;
208 ok = 1; 215 ok = 1;