libmicrohttpd

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

commit 534d586422c6eba94ae1b193338138cb2abce3cf
parent 19972a8eddbf7d3aff4b11805c3b3c3fb5d280fa
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Thu, 11 May 2017 22:24:10 +0300

resume_suspended_connections(): really mark resumed connection as "ready" in epoll mode

Diffstat:
Msrc/microhttpd/daemon.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c @@ -2895,7 +2895,8 @@ resume_suspended_connections (struct MHD_Daemon *daemon) EDLL_insert (daemon->eready_head, daemon->eready_tail, pos); - pos->epoll_state |= MHD_EPOLL_STATE_IN_EREADY_EDLL; + pos->epoll_state |= MHD_EPOLL_STATE_IN_EREADY_EDLL | \ + MHD_EPOLL_STATE_READ_READY | MHD_EPOLL_STATE_WRITE_READY; pos->epoll_state &= ~MHD_EPOLL_STATE_SUSPENDED; } #endif