Increasing MQTT redeliver timeout on Active MQ 5.14.3 broker
I am using Active MQ 5.14.3 as an MQTT broker. I am talking to it using the
paho java client v1.1.1.
My application uses a paho MQTT client to subscribe to a certain topic. I
am also setting manual acks so when it gets a callback (each time a msg
arrives) it does not ack immediately the msg (QOS 1 or 2). I pass the
message further along for processing and only after the processing is done
I ack back the message (based on the initial id).
In the logs I am seeing a lot of messages being resent by the broker (the
callback is called with the same messages). I am assuming this happens
because my processing is taking longer than some redelivery timeout on the
broker. It seems to happen alternatively between 1 and 2 seconds.
1. Is this redelivery timeout specified by MQTT or ActiveMQ? I could not
find explicit mention of it in the MQTT specs.
2. What is that redelivery timeout and where is it specified?
3. How to make sure that the redeliveries I am seeing are due indeed to
timeout on the broker and not something else?