Explorar o código

thread_main_handle_connection(): update states of connection after resume

Evgeny Grin (Karlson2k) %!s(int64=8) %!d(string=hai) anos
pai
achega
76cbe3d3b3
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/microhttpd/daemon.c

+ 2 - 0
src/microhttpd/daemon.c

@@ -1878,6 +1878,8 @@ thread_main_handle_connection (void *data)
       if (was_suspended)
       if (was_suspended)
         {
         {
           MHD_update_last_activity_ (con); /* Reset timeout timer. */
           MHD_update_last_activity_ (con); /* Reset timeout timer. */
+          /* Process response queued during suspend and update states. */
+          MHD_connection_handle_idle (con);
           was_suspended = false;
           was_suspended = false;
         }
         }