commit 2106f6f2bb9bda5c56c33eb0f795b54c61b5a933
parent 7d53b1eb9e979e199d8014a878630b061d129011
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Sun, 6 Jun 2021 18:24:12 +0300
connection.c: added TODO comment
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
@@ -2635,6 +2635,9 @@ check_write_done (struct MHD_Connection *connection,
connection->write_buffer_append_offset = 0;
connection->write_buffer_send_offset = 0;
connection->state = next_state;
+ /* TODO: avoid deallocation of the buffer so
+ * it can be reused for chunked body sending when
+ * header has been sent */
MHD_pool_reallocate (connection->pool,
connection->write_buffer,
connection->write_buffer_size,