Просмотр исходного кода

thread_main_handle_connection(): update states of connection after resume

Evgeny Grin (Karlson2k) 8 лет назад
Родитель
Сommit
76cbe3d3b3
1 измененных файлов с 2 добавлено и 0 удалено
  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)
         {
           MHD_update_last_activity_ (con); /* Reset timeout timer. */
+          /* Process response queued during suspend and update states. */
+          MHD_connection_handle_idle (con);
           was_suspended = false;
         }