aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_post.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/test_post.c')
-rw-r--r--src/testcurl/test_post.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/testcurl/test_post.c b/src/testcurl/test_post.c
index acc97e77..31fd16a2 100644
--- a/src/testcurl/test_post.c
+++ b/src/testcurl/test_post.c
@@ -57,7 +57,7 @@ completed_cb (void *cls,
57 struct MHD_PostProcessor *pp = *con_cls; 57 struct MHD_PostProcessor *pp = *con_cls;
58 58
59 if (NULL != pp) 59 if (NULL != pp)
60 MHD_destroy_post_processor (pp); 60 MHD_destroy_post_processor (pp);
61 *con_cls = NULL; 61 *con_cls = NULL;
62} 62}
63 63
@@ -100,6 +100,7 @@ post_iterator (void *cls,
100 return MHD_YES; 100 return MHD_YES;
101} 101}
102 102
103
103static int 104static int
104ahc_echo (void *cls, 105ahc_echo (void *cls,
105 struct MHD_Connection *connection, 106 struct MHD_Connection *connection,
@@ -433,6 +434,7 @@ testExternalPost ()
433 return 0; 434 return 0;
434} 435}
435 436
437
436static int 438static int
437ahc_cancel (void *cls, 439ahc_cancel (void *cls,
438 struct MHD_Connection *connection, 440 struct MHD_Connection *connection,
@@ -508,6 +510,7 @@ slowReadBuffer(void *p, size_t size, size_t nmemb, void *opaque)
508#define FLAG_SLOW_READ 8 510#define FLAG_SLOW_READ 8
509#define FLAG_COUNT 16 511#define FLAG_COUNT 16
510 512
513
511static int 514static int
512testMultithreadedPostCancelPart(int flags) 515testMultithreadedPostCancelPart(int flags)
513{ 516{
@@ -532,7 +535,6 @@ testMultithreadedPostCancelPart(int flags)
532 cbc.pos = 0; 535 cbc.pos = 0;
533 d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_DEBUG, 536 d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_DEBUG,
534 1081, NULL, NULL, &ahc_cancel, NULL, 537 1081, NULL, NULL, &ahc_cancel, NULL,
535 MHD_OPTION_NOTIFY_COMPLETED, &completed_cb, NULL,
536 MHD_OPTION_END); 538 MHD_OPTION_END);
537 if (d == NULL) 539 if (d == NULL)
538 return 32768; 540 return 32768;