diff options
Diffstat (limited to 'src/testcurl/test_large_put.c')
-rw-r--r-- | src/testcurl/test_large_put.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/testcurl/test_large_put.c b/src/testcurl/test_large_put.c index 8b37fc30..0baa9087 100644 --- a/src/testcurl/test_large_put.c +++ b/src/testcurl/test_large_put.c | |||
@@ -36,6 +36,13 @@ | |||
36 | #include <unistd.h> | 36 | #include <unistd.h> |
37 | #endif | 37 | #endif |
38 | 38 | ||
39 | #if defined(CPU_COUNT) && (CPU_COUNT+0) < 2 | ||
40 | #undef CPU_COUNT | ||
41 | #endif | ||
42 | #if !defined(CPU_COUNT) | ||
43 | #define CPU_COUNT 2 | ||
44 | #endif | ||
45 | |||
39 | static int oneone; | 46 | static int oneone; |
40 | 47 | ||
41 | /** | 48 | /** |
@@ -267,7 +274,7 @@ testMultithreadedPoolPut () | |||
267 | d = MHD_start_daemon (MHD_USE_SELECT_INTERNALLY | MHD_USE_DEBUG, | 274 | d = MHD_start_daemon (MHD_USE_SELECT_INTERNALLY | MHD_USE_DEBUG, |
268 | 1081, | 275 | 1081, |
269 | NULL, NULL, &ahc_echo, &done_flag, | 276 | NULL, NULL, &ahc_echo, &done_flag, |
270 | MHD_OPTION_THREAD_POOL_SIZE, 4, | 277 | MHD_OPTION_THREAD_POOL_SIZE, CPU_COUNT, |
271 | MHD_OPTION_CONNECTION_MEMORY_LIMIT, (size_t) (1024*1024), | 278 | MHD_OPTION_CONNECTION_MEMORY_LIMIT, (size_t) (1024*1024), |
272 | MHD_OPTION_END); | 279 | MHD_OPTION_END); |
273 | if (d == NULL) | 280 | if (d == NULL) |