Преглед изворни кода

MHD_poll_listen_socket(): handle resumed connections and closed "upgraded" connections

Evgeny Grin (Karlson2k) пре 8 година
родитељ
комит
5c71e7550e
2 измењених фајлова са 12 додато и 0 уклоњено
  1. 8 0
      ChangeLog
  2. 4 0
      src/microhttpd/daemon.c

+ 8 - 0
ChangeLog

@@ -1,3 +1,11 @@
+Sun May 14 14:49:00 MSK 2017
+	Removed extra call to resume connections in MHD_run().
+	Handle resumed connection without delay in epoll mode.
+	Update states of resumed connection after resume in thread-per-connection
+	mode.
+	Fixed resuming connections and closing upgraded connections in poll()
+	mode with thread-per-connection. -EG
+
 Thu May 11 22:37:00 MSK 2017
 	Faster start really processing data in resumed connections. -EG
 

+ 4 - 0
src/microhttpd/daemon.c

@@ -3897,6 +3897,10 @@ MHD_poll_listen_socket (struct MHD_Daemon *daemon,
       poll_itc_idx = poll_count;
       poll_count++;
     }
+
+  if (0 != (daemon->options & MHD_TEST_ALLOW_SUSPEND_RESUME))
+    (void)resume_suspended_connections (daemon);
+
   if (MHD_NO == may_block)
     timeout = 0;
   else