diff options
Diffstat (limited to 'src/testcurl/daemontest_large_put.c')
-rw-r--r-- | src/testcurl/daemontest_large_put.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/testcurl/daemontest_large_put.c b/src/testcurl/daemontest_large_put.c index b0c7bf37..414ddf76 100644 --- a/src/testcurl/daemontest_large_put.c +++ b/src/testcurl/daemontest_large_put.c | |||
@@ -41,8 +41,12 @@ static int oneone; | |||
41 | * Do not make this much larger since we will hit the | 41 | * Do not make this much larger since we will hit the |
42 | * MHD default buffer limit and the test code is not | 42 | * MHD default buffer limit and the test code is not |
43 | * written for incremental upload processing... | 43 | * written for incremental upload processing... |
44 | * (larger values will likely cause MHD to generate | ||
45 | * an internal server error -- which would be avoided | ||
46 | * by writing the putBuffer method in a more general | ||
47 | * fashion). | ||
44 | */ | 48 | */ |
45 | #define PUT_SIZE (512 * 1024) | 49 | #define PUT_SIZE (256 * 1024) |
46 | 50 | ||
47 | static char *put_buffer; | 51 | static char *put_buffer; |
48 | 52 | ||
@@ -390,11 +394,8 @@ main (int argc, char *const *argv) | |||
390 | return 2; | 394 | return 2; |
391 | put_buffer = malloc (PUT_SIZE); | 395 | put_buffer = malloc (PUT_SIZE); |
392 | memset (put_buffer, 1, PUT_SIZE); | 396 | memset (put_buffer, 1, PUT_SIZE); |
393 | if (0) | 397 | errorCount += testInternalPut (); |
394 | { | 398 | errorCount += testMultithreadedPut (); |
395 | errorCount += testInternalPut (); | ||
396 | errorCount += testMultithreadedPut (); | ||
397 | } | ||
398 | errorCount += testExternalPut (); | 399 | errorCount += testExternalPut (); |
399 | free (put_buffer); | 400 | free (put_buffer); |
400 | if (errorCount != 0) | 401 | if (errorCount != 0) |