commit 5ef86b7489595ceda7c75b7b7ba9154fe3f90846 parent 7f33ea76e7f7b912b70d4e226f376abb8e6cada8 Author: Evgeny Grin (Karlson2k) <k2k@narod.ru> Date: Mon, 23 Aug 2021 22:23:35 +0300 Stop deallocating memory buffer after each hunk or reply part Diffstat:
| M | src/microhttpd/connection.c | | | 9 | --------- |
1 file changed, 0 insertions(+), 9 deletions(-)
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c @@ -3211,15 +3211,6 @@ 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, - 0); - connection->write_buffer = NULL; - connection->write_buffer_size = 0; return MHD_YES; }