diff options
Diffstat (limited to 'src/microhttpd/test_set_panic.c')
-rw-r--r-- | src/microhttpd/test_set_panic.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/microhttpd/test_set_panic.c b/src/microhttpd/test_set_panic.c index b1a24000..935312a7 100644 --- a/src/microhttpd/test_set_panic.c +++ b/src/microhttpd/test_set_panic.c | |||
@@ -213,6 +213,8 @@ _mhdErrorExit_func (const char *errDesc, const char *funcName, int lineNum) | |||
213 | } | 213 | } |
214 | 214 | ||
215 | 215 | ||
216 | #ifndef MHD_POSIX_SOCKETS | ||
217 | |||
216 | /** | 218 | /** |
217 | * Pause execution for specified number of milliseconds. | 219 | * Pause execution for specified number of milliseconds. |
218 | * @param ms the number of milliseconds to sleep | 220 | * @param ms the number of milliseconds to sleep |
@@ -253,6 +255,8 @@ _MHD_sleep (uint32_t ms) | |||
253 | } | 255 | } |
254 | 256 | ||
255 | 257 | ||
258 | #endif /* ! MHD_POSIX_SOCKETS */ | ||
259 | |||
256 | /* Global parameters */ | 260 | /* Global parameters */ |
257 | static int verbose; /**< Be verbose */ | 261 | static int verbose; /**< Be verbose */ |
258 | static uint16_t global_port; /**< MHD daemons listen port number */ | 262 | static uint16_t global_port; /**< MHD daemons listen port number */ |
@@ -1121,12 +1125,6 @@ struct simpleQueryParams | |||
1121 | /* Non-zero to use chunked encoding for request body */ | 1125 | /* Non-zero to use chunked encoding for request body */ |
1122 | int chunked; | 1126 | int chunked; |
1123 | 1127 | ||
1124 | /* Max size of data for single 'send()' call */ | ||
1125 | size_t step_size; | ||
1126 | |||
1127 | /* Limit for total amount of sent data */ | ||
1128 | size_t total_send_max; | ||
1129 | |||
1130 | /* HTTP query result error flag */ | 1128 | /* HTTP query result error flag */ |
1131 | volatile int queryError; | 1129 | volatile int queryError; |
1132 | 1130 | ||
@@ -1311,7 +1309,7 @@ doClientQueryInThread (struct MHD_Daemon *d, | |||
1311 | c = _MHD_dumbClient_create (p->queryPort, p->method, p->queryPath, | 1309 | c = _MHD_dumbClient_create (p->queryPort, p->method, p->queryPath, |
1312 | p->headers, p->req_body, p->req_body_size, | 1310 | p->headers, p->req_body, p->req_body_size, |
1313 | p->chunked); | 1311 | p->chunked); |
1314 | _MHD_dumbClient_set_send_limits (c, p->step_size, p->total_send_max); | 1312 | _MHD_dumbClient_set_send_limits (c, 1, 0); |
1315 | 1313 | ||
1316 | /* 'internal' polling should not be used in this test */ | 1314 | /* 'internal' polling should not be used in this test */ |
1317 | mhd_assert (use_external_poll); | 1315 | mhd_assert (use_external_poll); |
@@ -1347,7 +1345,6 @@ performTestQueries (struct MHD_Daemon *d, uint16_t d_port, | |||
1347 | qParam.req_body = (const uint8_t *) REQ_BODY; | 1345 | qParam.req_body = (const uint8_t *) REQ_BODY; |
1348 | qParam.req_body_size = MHD_STATICSTR_LEN_ (REQ_BODY); | 1346 | qParam.req_body_size = MHD_STATICSTR_LEN_ (REQ_BODY); |
1349 | qParam.chunked = 0; | 1347 | qParam.chunked = 0; |
1350 | qParam.step_size = 0; | ||
1351 | 1348 | ||
1352 | ahc_param->rq_url = EXPECTED_URI_BASE_PATH; | 1349 | ahc_param->rq_url = EXPECTED_URI_BASE_PATH; |
1353 | ahc_param->rq_method = MHD_HTTP_METHOD_PUT; | 1350 | ahc_param->rq_method = MHD_HTTP_METHOD_PUT; |