diff options
Diffstat (limited to 'src/microhttpd/connection.c')
-rw-r--r-- | src/microhttpd/connection.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index 48a07cf4..2e5979c5 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c | |||
@@ -1824,7 +1824,7 @@ int | |||
1824 | MHD_connection_handle_read (struct MHD_Connection *connection) | 1824 | MHD_connection_handle_read (struct MHD_Connection *connection) |
1825 | { | 1825 | { |
1826 | update_last_activity (connection); | 1826 | update_last_activity (connection); |
1827 | if (connection->state == MHD_CONNECTION_CLOSED) | 1827 | if (MHD_CONNECTION_CLOSED == connection->state) |
1828 | return MHD_YES; | 1828 | return MHD_YES; |
1829 | /* make sure "read" has a reasonable number of bytes | 1829 | /* make sure "read" has a reasonable number of bytes |
1830 | in buffer to use per system call (if possible) */ | 1830 | in buffer to use per system call (if possible) */ |
@@ -2169,13 +2169,13 @@ MHD_connection_handle_idle (struct MHD_Connection *connection) | |||
2169 | continue; | 2169 | continue; |
2170 | case MHD_CONNECTION_HEADERS_RECEIVED: | 2170 | case MHD_CONNECTION_HEADERS_RECEIVED: |
2171 | parse_connection_headers (connection); | 2171 | parse_connection_headers (connection); |
2172 | if (connection->state == MHD_CONNECTION_CLOSED) | 2172 | if (MHD_CONNECTION_CLOSED == connection->state) |
2173 | continue; | 2173 | continue; |
2174 | connection->state = MHD_CONNECTION_HEADERS_PROCESSED; | 2174 | connection->state = MHD_CONNECTION_HEADERS_PROCESSED; |
2175 | continue; | 2175 | continue; |
2176 | case MHD_CONNECTION_HEADERS_PROCESSED: | 2176 | case MHD_CONNECTION_HEADERS_PROCESSED: |
2177 | call_connection_handler (connection); /* first call */ | 2177 | call_connection_handler (connection); /* first call */ |
2178 | if (connection->state == MHD_CONNECTION_CLOSED) | 2178 | if (MHD_CONNECTION_CLOSED == connection->state) |
2179 | continue; | 2179 | continue; |
2180 | if (need_100_continue (connection)) | 2180 | if (need_100_continue (connection)) |
2181 | { | 2181 | { |
@@ -2208,7 +2208,7 @@ MHD_connection_handle_idle (struct MHD_Connection *connection) | |||
2208 | if (connection->read_buffer_offset != 0) | 2208 | if (connection->read_buffer_offset != 0) |
2209 | { | 2209 | { |
2210 | process_request_body (connection); /* loop call */ | 2210 | process_request_body (connection); /* loop call */ |
2211 | if (connection->state == MHD_CONNECTION_CLOSED) | 2211 | if (MHD_CONNECTION_CLOSED == connection->state) |
2212 | continue; | 2212 | continue; |
2213 | } | 2213 | } |
2214 | if ((connection->remaining_upload_size == 0) || | 2214 | if ((connection->remaining_upload_size == 0) || |