commit fe7472e6f132709bde162f683942b4be74d260af
parent 85150883706e631da5d0de35a5a1f452efbe1b7e
Author: Christian Grothoff <christian@grothoff.org>
Date: Sat, 9 Apr 2011 14:12:20 +0000
1674 round II
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c
@@ -1468,7 +1468,7 @@ MHD_poll_listen_socket (struct MHD_Daemon *daemon,
timeout = (ltimeout > INT_MAX) ? INT_MAX : (int) ltimeout;
#ifdef __CYGWIN__
/* See https://gnunet.org/bugs/view.php?id=1674 */
- timeout = (timeout > 2000) ? 2000 : timeout;
+ timeout = ( (timeout > 2000) || (timeout < 0) ) ? 2000 : timeout;
#endif
if (poll (&p, 1, timeout) < 0)
{