diff options
Diffstat (limited to 'src/testcurl/test_process_headers.c')
-rw-r--r-- | src/testcurl/test_process_headers.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/testcurl/test_process_headers.c b/src/testcurl/test_process_headers.c index 1962d7db..b838bc74 100644 --- a/src/testcurl/test_process_headers.c +++ b/src/testcurl/test_process_headers.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 | static int oneone; | 47 | static int oneone; |
41 | 48 | ||
42 | struct CBC | 49 | struct CBC |
@@ -250,7 +257,7 @@ testMultithreadedPoolGet () | |||
250 | cbc.pos = 0; | 257 | cbc.pos = 0; |
251 | d = MHD_start_daemon (MHD_USE_SELECT_INTERNALLY | MHD_USE_DEBUG, | 258 | d = MHD_start_daemon (MHD_USE_SELECT_INTERNALLY | MHD_USE_DEBUG, |
252 | 21080, NULL, NULL, &ahc_echo, "GET", | 259 | 21080, NULL, NULL, &ahc_echo, "GET", |
253 | MHD_OPTION_THREAD_POOL_SIZE, 4, MHD_OPTION_END); | 260 | MHD_OPTION_THREAD_POOL_SIZE, CPU_COUNT, MHD_OPTION_END); |
254 | if (d == NULL) | 261 | if (d == NULL) |
255 | return 16; | 262 | return 16; |
256 | c = curl_easy_init (); | 263 | c = curl_easy_init (); |