From 353fdc383ef97a730f1a22a160c8df8d7a174677 Mon Sep 17 00:00:00 2001 From: bdavis Date: Tue, 13 Oct 2015 19:54:57 -0500 Subject: [PATCH] fd test will fail under windows, where file descriptors can be large numbers --- lib/pollfd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/pollfd.c b/lib/pollfd.c index 29e14c2..d4edb7e 100644 --- a/lib/pollfd.c +++ b/lib/pollfd.c @@ -80,11 +80,13 @@ remove_wsi_socket_from_fds(struct libwebsocket_context *context, --context->fds_count; +#ifndef _WIN32 if (wsi->sock > context->max_fds) { lwsl_err("Socket fd %d too high (%d)\n", wsi->sock, context->max_fds); return 1; } +#endif lwsl_info("%s: wsi=%p, sock=%d, fds pos=%d\n", __func__, wsi, wsi->sock, wsi->position_in_fds_table); -- 2.7.4