1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

fd test will fail under windows, where file descriptors can be large numbers

This commit is contained in:
bdavis 2015-10-13 19:54:57 -05:00 committed by Andy Green
parent 173e9c4ea2
commit 353fdc383e

View file

@ -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);