diff options
Diffstat (limited to 'src/microhttpd/connection.c')
-rw-r--r-- | src/microhttpd/connection.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index 02497cc6..f9f15cec 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c | |||
@@ -259,7 +259,7 @@ MHD_get_connection_values (struct MHD_Connection *connection, | |||
259 | { | 259 | { |
260 | ret++; | 260 | ret++; |
261 | if ( (NULL != iterator) && | 261 | if ( (NULL != iterator) && |
262 | (MHD_YES != iterator (iterator_cls, | 262 | (MHD_NO == iterator (iterator_cls, |
263 | pos->kind, | 263 | pos->kind, |
264 | pos->header, | 264 | pos->header, |
265 | pos->value)) ) | 265 | pos->value)) ) |
@@ -1333,7 +1333,7 @@ build_header_response (struct MHD_Connection *connection) | |||
1333 | close the connection */ | 1333 | close the connection */ |
1334 | /* 'close' header doesn't exist yet, see if we need to add one; | 1334 | /* 'close' header doesn't exist yet, see if we need to add one; |
1335 | if the client asked for a close, no need to start chunk'ing */ | 1335 | if the client asked for a close, no need to start chunk'ing */ |
1336 | if ( (MHD_YES == keepalive_possible (connection)) && | 1336 | if ( (MHD_NO != keepalive_possible (connection)) && |
1337 | (MHD_str_equal_caseless_ (MHD_HTTP_VERSION_1_1, | 1337 | (MHD_str_equal_caseless_ (MHD_HTTP_VERSION_1_1, |
1338 | connection->version) ) ) | 1338 | connection->version) ) ) |
1339 | { | 1339 | { |
@@ -1430,7 +1430,7 @@ build_header_response (struct MHD_Connection *connection) | |||
1430 | #ifdef UPGRADE_SUPPORT | 1430 | #ifdef UPGRADE_SUPPORT |
1431 | (NULL == response->upgrade_handler) && | 1431 | (NULL == response->upgrade_handler) && |
1432 | #endif /* UPGRADE_SUPPORT */ | 1432 | #endif /* UPGRADE_SUPPORT */ |
1433 | (MHD_YES == keepalive_possible (connection)) ) | 1433 | (MHD_NO != keepalive_possible (connection)) ) |
1434 | must_add_keep_alive = true; | 1434 | must_add_keep_alive = true; |
1435 | break; | 1435 | break; |
1436 | case MHD_CONNECTION_BODY_SENT: | 1436 | case MHD_CONNECTION_BODY_SENT: |
@@ -1631,7 +1631,7 @@ transmit_error_response (struct MHD_Connection *connection, | |||
1631 | status_code, | 1631 | status_code, |
1632 | response); | 1632 | response); |
1633 | MHD_destroy_response (response); | 1633 | MHD_destroy_response (response); |
1634 | if (MHD_YES != iret) | 1634 | if (MHD_NO == iret) |
1635 | { | 1635 | { |
1636 | /* can't even send a reply, at least close the connection */ | 1636 | /* can't even send a reply, at least close the connection */ |
1637 | CONNECTION_CLOSE_ERROR (connection, | 1637 | CONNECTION_CLOSE_ERROR (connection, |
@@ -2426,7 +2426,7 @@ process_request_body (struct MHD_Connection *connection) | |||
2426 | if (MHD_SIZE_UNKNOWN != connection->remaining_upload_size) | 2426 | if (MHD_SIZE_UNKNOWN != connection->remaining_upload_size) |
2427 | connection->remaining_upload_size -= processed_size; | 2427 | connection->remaining_upload_size -= processed_size; |
2428 | } | 2428 | } |
2429 | while (MHD_YES == instant_retry); | 2429 | while (MHD_NO != instant_retry); |
2430 | if ( (available > 0) && | 2430 | if ( (available > 0) && |
2431 | (buffer_head != connection->read_buffer) ) | 2431 | (buffer_head != connection->read_buffer) ) |
2432 | memmove (connection->read_buffer, | 2432 | memmove (connection->read_buffer, |
@@ -2666,7 +2666,7 @@ parse_connection_headers (struct MHD_Connection *connection) | |||
2666 | MHD_HTTP_BAD_REQUEST, | 2666 | MHD_HTTP_BAD_REQUEST, |
2667 | response); | 2667 | response); |
2668 | MHD_destroy_response (response); | 2668 | MHD_destroy_response (response); |
2669 | if (MHD_YES != iret) | 2669 | if (MHD_NO == iret) |
2670 | { | 2670 | { |
2671 | /* can't even send a reply, at least close the connection */ | 2671 | /* can't even send a reply, at least close the connection */ |
2672 | CONNECTION_CLOSE_ERROR (connection, | 2672 | CONNECTION_CLOSE_ERROR (connection, |
@@ -3012,7 +3012,7 @@ MHD_connection_handle_write (struct MHD_Connection *connection) | |||
3012 | if (NULL != response->crc) | 3012 | if (NULL != response->crc) |
3013 | MHD_mutex_lock_chk_ (&response->mutex); | 3013 | MHD_mutex_lock_chk_ (&response->mutex); |
3014 | #endif | 3014 | #endif |
3015 | if (MHD_YES != try_ready_normal_body (connection)) | 3015 | if (MHD_NO == try_ready_normal_body (connection)) |
3016 | { | 3016 | { |
3017 | /* mutex was already unlocked by try_ready_normal_body */ | 3017 | /* mutex was already unlocked by try_ready_normal_body */ |
3018 | return; | 3018 | return; |
@@ -3494,7 +3494,7 @@ MHD_connection_handle_idle (struct MHD_Connection *connection) | |||
3494 | { | 3494 | { |
3495 | connection->state = MHD_CONNECTION_UPGRADE; | 3495 | connection->state = MHD_CONNECTION_UPGRADE; |
3496 | /* This connection is "upgraded". Pass socket to application. */ | 3496 | /* This connection is "upgraded". Pass socket to application. */ |
3497 | if (MHD_YES != | 3497 | if (MHD_NO == |
3498 | MHD_response_execute_upgrade_ (connection->response, | 3498 | MHD_response_execute_upgrade_ (connection->response, |
3499 | connection)) | 3499 | connection)) |
3500 | { | 3500 | { |
@@ -3536,7 +3536,7 @@ MHD_connection_handle_idle (struct MHD_Connection *connection) | |||
3536 | connection->state = MHD_CONNECTION_BODY_SENT; | 3536 | connection->state = MHD_CONNECTION_BODY_SENT; |
3537 | continue; | 3537 | continue; |
3538 | } | 3538 | } |
3539 | if (MHD_YES == try_ready_normal_body (connection)) | 3539 | if (MHD_NO != try_ready_normal_body (connection)) |
3540 | { | 3540 | { |
3541 | #if defined(MHD_USE_POSIX_THREADS) || defined(MHD_USE_W32_THREADS) | 3541 | #if defined(MHD_USE_POSIX_THREADS) || defined(MHD_USE_W32_THREADS) |
3542 | if (NULL != connection->response->crc) | 3542 | if (NULL != connection->response->crc) |
@@ -3569,7 +3569,7 @@ MHD_connection_handle_idle (struct MHD_Connection *connection) | |||
3569 | connection->state = MHD_CONNECTION_BODY_SENT; | 3569 | connection->state = MHD_CONNECTION_BODY_SENT; |
3570 | continue; | 3570 | continue; |
3571 | } | 3571 | } |
3572 | if (MHD_YES == try_ready_chunked_body (connection)) | 3572 | if (MHD_NO != try_ready_chunked_body (connection)) |
3573 | { | 3573 | { |
3574 | #if defined(MHD_USE_POSIX_THREADS) || defined(MHD_USE_W32_THREADS) | 3574 | #if defined(MHD_USE_POSIX_THREADS) || defined(MHD_USE_W32_THREADS) |
3575 | if (NULL != connection->response->crc) | 3575 | if (NULL != connection->response->crc) |