libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 149eaabc678adc8845421b91e477b0b39e792ecd
parent 6123b2ab2b9c658612df3279567dc709d8eb3220
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Sat,  5 Jun 2021 22:16:15 +0300

Added TODO comments and corrected log message

Diffstat:
Msrc/microhttpd/connection.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c @@ -2381,6 +2381,8 @@ process_request_body (struct MHD_Connection *connection) if (NULL != connection->response) { + /* TODO: discard all read buffer as early response + * means that connection have to be closed. */ /* already queued a response, discard remaining upload (but not more, there might be another request after it) */ size_t purge; @@ -2599,6 +2601,7 @@ process_request_body (struct MHD_Connection *connection) connection->remaining_upload_size -= processed_size; } while (MHD_NO != instant_retry); + /* TODO: zero out reused memory region */ if ( (available > 0) && (buffer_head != connection->read_buffer) ) memmove (connection->read_buffer, @@ -3840,7 +3843,7 @@ MHD_connection_handle_idle (struct MHD_Connection *connection) /* oops - close! */ CONNECTION_CLOSE_ERROR (connection, _ ( - "Closing connection (failed to create response header).")); + "Closing connection (failed to create response footer).")); continue; } if ( (! connection->have_chunked_upload) ||