I am using Python based paho mqtt client to publish data to mosquitto mqtt broker.
Let's assume a scenario, when client wanted to publish message and broker got disconnected.
So python based client object buffers that message in _out_message (Ordered Dictionary), and keep retrying to send messages.
I wanted to know,
- For how long mqtt client will buffer such message?
- Is there any time limit or retry limit after which client will drop the message.
I wanted to dump/log such messages.
out_messages
queue is only used for qos 1,2; and b) no obvious expiry on retries for unacknowledged messages. But feel free to check it yourself. Important for your use of the client to correctly handleon_disconnect()
callback and returned values from publish call because the queue is by no means infinite. – balmy