From 76cbe3d3b3fc85f3584fa846f5fafeeacfe16882 Mon Sep 17 00:00:00 2001 From: "Evgeny Grin (Karlson2k)" Date: Sun, 14 May 2017 14:44:15 +0300 Subject: [PATCH] thread_main_handle_connection(): update states of connection after resume --- src/microhttpd/daemon.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index 9a3409a2..540dc7ea 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c @@ -1878,6 +1878,8 @@ thread_main_handle_connection (void *data) if (was_suspended) { MHD_update_last_activity_ (con); /* Reset timeout timer. */ + /* Process response queued during suspend and update states. */ + MHD_connection_handle_idle (con); was_suspended = false; }