diff options
Diffstat (limited to 'src/testcurl/test_get_chunked.c')
-rw-r--r-- | src/testcurl/test_get_chunked.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/testcurl/test_get_chunked.c b/src/testcurl/test_get_chunked.c index c9528d37..a720ace7 100644 --- a/src/testcurl/test_get_chunked.c +++ b/src/testcurl/test_get_chunked.c | |||
@@ -40,6 +40,13 @@ | |||
40 | #include <unistd.h> | 40 | #include <unistd.h> |
41 | #endif | 41 | #endif |
42 | 42 | ||
43 | #if defined(CPU_COUNT) && (CPU_COUNT+0) < 2 | ||
44 | #undef CPU_COUNT | ||
45 | #endif | ||
46 | #if !defined(CPU_COUNT) | ||
47 | #define CPU_COUNT 2 | ||
48 | #endif | ||
49 | |||
43 | struct CBC | 50 | struct CBC |
44 | { | 51 | { |
45 | char *buf; | 52 | char *buf; |
@@ -243,7 +250,7 @@ testMultithreadedPoolGet () | |||
243 | cbc.pos = 0; | 250 | cbc.pos = 0; |
244 | d = MHD_start_daemon (MHD_USE_SELECT_INTERNALLY | MHD_USE_DEBUG, | 251 | d = MHD_start_daemon (MHD_USE_SELECT_INTERNALLY | MHD_USE_DEBUG, |
245 | 1081, NULL, NULL, &ahc_echo, "GET", | 252 | 1081, NULL, NULL, &ahc_echo, "GET", |
246 | MHD_OPTION_THREAD_POOL_SIZE, 4, MHD_OPTION_END); | 253 | MHD_OPTION_THREAD_POOL_SIZE, CPU_COUNT, MHD_OPTION_END); |
247 | if (d == NULL) | 254 | if (d == NULL) |
248 | return 16; | 255 | return 16; |
249 | c = curl_easy_init (); | 256 | c = curl_easy_init (); |