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
Whenever a new message is being published from the client by mosquitto_publish() , it is appened to a linked list containing all the messages to be sent. But it is not being processed right after that. Mosquitto loop will check the message to be sent and send the necessary messages.
The problem is that there is no limit to the number of message that we can add in this linked list. If the number of incoming message is higher than the network abilities of the computer, the program will quickly run out of memory and be killed by the computer.
This problem does only occurs for mosquitto client, and not mosquitto broker. For the broker, there is this specific line of code that solves a lot of things:
Whenever a new message is being published from the client by mosquitto_publish() , it is appened to a linked list containing all the messages to be sent. But it is not being processed right after that. Mosquitto loop will check the message to be sent and send the necessary messages.
The problem is that there is no limit to the number of message that we can add in this linked list. If the number of incoming message is higher than the network abilities of the computer, the program will quickly run out of memory and be killed by the computer.
This problem does only occurs for mosquitto client, and not mosquitto broker. For the broker, there is this specific line of code that solves a lot of things:
The text was updated successfully, but these errors were encountered: