commit d9df0418b370552bfd7cada435bc20f0d5c28017
parent ae6ab22d2bbf4add17dafdfde41b0c8769e14fba
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Fri, 5 May 2017 13:29:13 +0300
connection.c: more cleanup after completed of serving request.
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
@@ -3234,6 +3234,9 @@ MHD_connection_handle_idle (struct MHD_Connection *connection)
socket_start_normal_buffering (connection);
connection->version = NULL;
connection->state = MHD_CONNECTION_INIT;
+ connection->last = NULL;
+ connection->colon = NULL;
+ connection->header_size = 0;
/* Reset the read buffer to the starting size,
preserving the bytes we have already read. */
connection->read_buffer
@@ -3252,6 +3255,8 @@ MHD_connection_handle_idle (struct MHD_Connection *connection)
connection->headers_received_tail = NULL;
connection->response_write_position = 0;
connection->have_chunked_upload = false;
+ connection->current_chunk_size = 0;
+ connection->current_chunk_offset = 0;
connection->method = NULL;
connection->url = NULL;
connection->write_buffer = NULL;