mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-29 04:09:31 +03:00
define and use 'enum MHD_Result' (merge)
This commit is contained in:
45 files changed
+980
-101
No files matched your search
@@ -20,7 +20,7 @@
|
||||
|
||||
/**
|
||||
* @file test_empty_response.c
|
||||
* @brief Testcase for libmicrohttpd HTTPS GET operations with emtpy reply
|
||||
* @brief Testcase for libmicrohttpd HTTPS GET operations with empty reply
|
||||
* @author Christian Grothoff
|
||||
*/
|
||||
#include "platform.h"
|
||||
|
||||
@@ -60,7 +60,7 @@ https_transfer_thread_adapter (void *args)
|
||||
struct https_test_data *cargs = args;
|
||||
int ret;
|
||||
|
||||
/* time spread incomming requests */
|
||||
/* time spread incoming requests */
|
||||
usleep ((useconds_t) 10.0 * ((double) rand ()) / ((double) RAND_MAX));
|
||||
ret = test_https_transfer (NULL, cargs->port,
|
||||
cargs->cipher_suite, cargs->proto_version);
|
||||
@@ -98,7 +98,7 @@ test_single_client (void *cls, int port, const char *cipher_suite,
|
||||
*
|
||||
* @return: 0 upon all client requests returning '0', -1 otherwise.
|
||||
*
|
||||
* TODO : make client_count a parameter - numver of curl client threads to spawn
|
||||
* TODO : make client_count a parameter - number of curl client threads to spawn
|
||||
*/
|
||||
static int
|
||||
test_parallel_clients (void *cls, int port, const char *cipher_suite,
|
||||
|
||||
@@ -61,7 +61,7 @@ https_transfer_thread_adapter (void *args)
|
||||
struct https_test_data *cargs = args;
|
||||
int ret;
|
||||
|
||||
/* time spread incomming requests */
|
||||
/* time spread incoming requests */
|
||||
usleep ((useconds_t) 10.0 * ((double) rand ()) / ((double) RAND_MAX));
|
||||
ret = test_https_transfer (cargs->cls, cargs->port,
|
||||
cargs->cipher_suite, cargs->proto_version);
|
||||
@@ -76,7 +76,7 @@ https_transfer_thread_adapter (void *args)
|
||||
*
|
||||
* @return: 0 upon all client requests returning '0', -1 otherwise.
|
||||
*
|
||||
* TODO : make client_count a parameter - numver of curl client threads to spawn
|
||||
* TODO : make client_count a parameter - number of curl client threads to spawn
|
||||
*/
|
||||
static int
|
||||
test_single_client (void *cls, int port, const char *cipher_suite,
|
||||
@@ -99,7 +99,7 @@ test_single_client (void *cls, int port, const char *cipher_suite,
|
||||
*
|
||||
* @return: 0 upon all client requests returning '0', -1 otherwise.
|
||||
*
|
||||
* TODO : make client_count a parameter - numver of curl client threads to spawn
|
||||
* TODO : make client_count a parameter - number of curl client threads to spawn
|
||||
*/
|
||||
static int
|
||||
test_parallel_clients (void *cls, int port, const char *cipher_suite,
|
||||
|
||||
@@ -401,7 +401,7 @@ test_https_transfer (void *cls,
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
/* compare test file & daemon responce */
|
||||
/* compare test file & daemon response */
|
||||
if ( (len != strlen (test_data)) ||
|
||||
(memcmp (cbc.buf,
|
||||
test_data,
|
||||
|
||||
Reference in new issue
Block a user