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:
parent
173e9c4ea2
commit
353fdc383e
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue