libmicrohttpd

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

commit 5335e4afd7aeba79c21a7853b29cef3c4fb6d012
parent a223b92977940693eafe0d511640aac05d677cab
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon, 16 Nov 2009 13:34:35 +0000

fixing 1512

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

diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c @@ -493,6 +493,8 @@ MHD_handle_connection (void *data) struct pollfd p; timeout = con->daemon->connection_timeout; + if (timeout == 0) + timeout = -1; /* 'forever' */ while ((!con->daemon->shutdown) && (con->socket_fd != -1)) { now = time (NULL); tv.tv_usec = 0;