[Libwebsockets] Fwd: FW: patch for windows. concerning big number file descriptors

Bud Davis bdavis9659 at gmail.com
Sat Jul 18 14:09:26 CEST 2015


Hello All,

This was missed during a previous patch.  I apologize for it taking so long
to get posted.


Regards,
Bud Davis





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);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://libwebsockets.org/pipermail/libwebsockets/attachments/20150718/c0669932/attachment.html>


More information about the Libwebsockets mailing list