libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 5c71e7550e31cacebc64f1669c28d7f8940e9701
parent 76cbe3d3b3fc85f3584fa846f5fafeeacfe16882
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Sun, 14 May 2017 14:46:27 +0300

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

Diffstat:
MChangeLog | 8++++++++
Msrc/microhttpd/daemon.c | 4++++
2 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/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 diff --git a/src/microhttpd/daemon.c b/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