libmicrohttpd2

HTTP server C library (MHD 2.x, alpha)
Log | Files | Refs | README | LICENSE

commit 641fabe4b5de7782a35e239b094fa82592201277
parent 5b241496eba488f33b89b44578ff33b16ddf0c37
Author: Evgeny Grin <k2k@drgrin.dev>
Date:   Thu, 15 May 2025 20:47:24 +0300

json_echo.c: another fix for correct use of MHD API

For level triggering, the states of the sockets must be always updated,
otherwise the state remains unchanged (and not cleared).

Diffstat:
Msrc/examples2/json_echo.c | 2--
1 file changed, 0 insertions(+), 2 deletions(-)

diff --git a/src/examples2/json_echo.c b/src/examples2/json_echo.c @@ -348,8 +348,6 @@ main (int argc, if (FD_ISSET (pos->fd, &es)) current_state |= MHD_FD_STATE_EXCEPT; - if (MHD_FD_STATE_NONE == current_state) - continue; /* not triggered */ MHD_daemon_event_update (d, pos->ecb_cntx, current_state);