diff options
Diffstat (limited to 'src/microhttpd/test_client_put_stop.c')
-rw-r--r-- | src/microhttpd/test_client_put_stop.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/microhttpd/test_client_put_stop.c b/src/microhttpd/test_client_put_stop.c index 41c80465..275d407e 100644 --- a/src/microhttpd/test_client_put_stop.c +++ b/src/microhttpd/test_client_put_stop.c | |||
@@ -1399,6 +1399,7 @@ performTestQueries (struct MHD_Daemon *d, int d_port, | |||
1399 | struct sckt_notif_cb_param *sckt_result) | 1399 | struct sckt_notif_cb_param *sckt_result) |
1400 | { | 1400 | { |
1401 | struct simpleQueryParams qParam; | 1401 | struct simpleQueryParams qParam; |
1402 | time_t start; | ||
1402 | int ret = 0; /* Return value */ | 1403 | int ret = 0; /* Return value */ |
1403 | size_t req_total_size; | 1404 | size_t req_total_size; |
1404 | size_t limit_send_size; | 1405 | size_t limit_send_size; |
@@ -1440,6 +1441,7 @@ performTestQueries (struct MHD_Daemon *d, int d_port, | |||
1440 | MHD_REQUEST_TERMINATED_READ_ERROR : | 1441 | MHD_REQUEST_TERMINATED_READ_ERROR : |
1441 | MHD_REQUEST_TERMINATED_CLIENT_ABORT; | 1442 | MHD_REQUEST_TERMINATED_CLIENT_ABORT; |
1442 | found_right_reason = 0; | 1443 | found_right_reason = 0; |
1444 | start = time (NULL); | ||
1443 | for (limit_send_size = 1; limit_send_size < req_total_size; limit_send_size++) | 1445 | for (limit_send_size = 1; limit_send_size < req_total_size; limit_send_size++) |
1444 | { | 1446 | { |
1445 | int test_succeed; | 1447 | int test_succeed; |
@@ -1498,6 +1500,12 @@ performTestQueries (struct MHD_Daemon *d, int d_port, | |||
1498 | &qParam, ahc_param, uri_cb_param, | 1500 | &qParam, ahc_param, uri_cb_param, |
1499 | term_result, sckt_result); | 1501 | term_result, sckt_result); |
1500 | } | 1502 | } |
1503 | |||
1504 | if (time (NULL) - start > TIMEOUTS_VAL * 25) | ||
1505 | { | ||
1506 | ret |= 1 << 2; | ||
1507 | fprintf (stderr, "FAILED: Test total time exceeded.\n"); | ||
1508 | } | ||
1501 | } | 1509 | } |
1502 | 1510 | ||
1503 | MHD_stop_daemon (d); | 1511 | MHD_stop_daemon (d); |