1
votes

Is there some timeout mechanism for MQTT between PUBREC and PUBREL in QOS 2?

Or the timeout is same as global keep alive timeout?

Thanks!

Diagram from HiveMQ Diagram from HiveMQ (http://www.hivemq.com/blog/mqtt-essentials-part-6-mqtt-quality-of-service-levels)

1
Have you looked at the spec?hardillb
Hi @hardillb, I've read seldom timeout about the time between qos1 or 2. Almost every "timeout" wording is for keep alive timeout. This retry section (public.dhe.ibm.com/software/dw/webservices/ws-mqtt/…) said that the timeout is configurable, but I don't know where is the config in mosquitto.Asoul
I've got some problem about mosquitto server and a non-open sourced chip, the mqtt library may broke on some situation, so I'm tracing what may happen.Asoul

1 Answers

2
votes

For mosquitto the option you are looking for is

retry_interval

Taken from the man page

retry_interval seconds

The integer number of seconds after a QoS=1 or QoS=2 message has been sent that mosquitto will wait before retrying when no response is received. If unset, defaults to 20 seconds.

Reloaded on reload signal.