diff options
Diffstat (limited to 'src/testcurl/test_post.c')
-rw-r--r-- | src/testcurl/test_post.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/testcurl/test_post.c b/src/testcurl/test_post.c index a0be0f94..f6f79935 100644 --- a/src/testcurl/test_post.c +++ b/src/testcurl/test_post.c | |||
@@ -43,6 +43,13 @@ | |||
43 | #include <windows.h> | 43 | #include <windows.h> |
44 | #endif | 44 | #endif |
45 | 45 | ||
46 | #if defined(CPU_COUNT) && (CPU_COUNT+0) < 2 | ||
47 | #undef CPU_COUNT | ||
48 | #endif | ||
49 | #if !defined(CPU_COUNT) | ||
50 | #define CPU_COUNT 2 | ||
51 | #endif | ||
52 | |||
46 | #define POST_DATA "name=daniel&project=curl" | 53 | #define POST_DATA "name=daniel&project=curl" |
47 | 54 | ||
48 | static int oneone; | 55 | static int oneone; |
@@ -273,7 +280,7 @@ testMultithreadedPoolPost () | |||
273 | cbc.pos = 0; | 280 | cbc.pos = 0; |
274 | d = MHD_start_daemon (MHD_USE_SELECT_INTERNALLY | MHD_USE_DEBUG, | 281 | d = MHD_start_daemon (MHD_USE_SELECT_INTERNALLY | MHD_USE_DEBUG, |
275 | 1081, NULL, NULL, &ahc_echo, NULL, | 282 | 1081, NULL, NULL, &ahc_echo, NULL, |
276 | MHD_OPTION_THREAD_POOL_SIZE, 4, | 283 | MHD_OPTION_THREAD_POOL_SIZE, CPU_COUNT, |
277 | MHD_OPTION_NOTIFY_COMPLETED, &completed_cb, NULL, | 284 | MHD_OPTION_NOTIFY_COMPLETED, &completed_cb, NULL, |
278 | MHD_OPTION_END); | 285 | MHD_OPTION_END); |
279 | if (d == NULL) | 286 | if (d == NULL) |