Tuning linux client device to support more than 1024 client [message #1848908] |
Thu, 23 December 2021 01:31 |
Eclipse User |
|
|
|
Hi All,
I am trying to run more than 2000 clients in single linux machine using paho client library. When the clients count reaches 1024 ie that many sockets get opened , paho client is not allowing any more connections. How to get past this limitation ?
if (mod_s.clientsds->count >= FD_SETSIZE)
{
Log(LOG_ERROR, -1, "addSocket: exceeded FD_SETSIZE %d", FD_SETSIZE);
rc = SOCKET_ERROR;
}
System: Ubuntu 16.04
Number of open sockets available in the machine is more than 100000.
MQTT broker running on the same machine is allowing more than 1024 sockets to be opened.
|
|
|
Powered by
FUDForum. Page generated in 0.04559 seconds