You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (select((int)SELECT_FD(sock->fd), NULL, &fdset,
a posix select() call is used.
This is limited to handle a maxmium of 1024 filedescriptors in a system (overall, not only in that specific call!).
Depending on the system, this is not limited to sockets, but simple files as well.
If the select() is then called wth an fd where the id is above 1024, the behavior is undefined, in most cases it just fails.
==> please replace this by e.g. poll() or other more modern mechanism for the scheme
The text was updated successfully, but these errors were encountered:
Thanks for your suggestion! I will treat this as a feature request. The example client code is designed to be easy to understand and helpful for someone getting started. I think this feature will support those goals.
Could you tell us a bit about your project? Does the 1024 fd limit from select() impact you?
In this line:
wolfMQTT/examples/mqttnet.c
Line 672 in 0ba0929
select()
call is used.This is limited to handle a maxmium of 1024 filedescriptors in a system (overall, not only in that specific call!).
Depending on the system, this is not limited to sockets, but simple files as well.
If the
select()
is then called wth an fd where the id is above 1024, the behavior is undefined, in most cases it just fails.==> please replace this by e.g.
poll()
or other more modern mechanism for the schemeThe text was updated successfully, but these errors were encountered: