libmicrohttpd

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

commit 7ba36f02aec0825c96ed5f4279fbdc3482f7b1c1
parent 1e1ddd66fbf4921802c6bf2f7c99d24de8919e71
Author: Christian Grothoff <christian@grothoff.org>
Date:   Thu,  2 Oct 2008 16:17:49 +0000

async close issue

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

diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c @@ -273,7 +273,7 @@ MHD_handle_connection (void *data) break; } /* call appropriate connection handler if necessary */ - if (FD_ISSET (con->socket_fd, &rs)) + if ((con->socket_fd != -1) && (FD_ISSET (con->socket_fd, &rs))) con->read_handler (con); if ((con->socket_fd != -1) && (FD_ISSET (con->socket_fd, &ws))) con->write_handler (con);