Closed
Description
Hello,
I am not sure if this is by design or a bug, but subscribing a topic with QoS1 always results in duplicate messages. However, these messages don't have the DUP flag set to 1. So it is as if the AWS MQTT broker is re-sending the same message over and over again or there is some issue inside the SDK.
I tried to debug the issue and found few interesting observations:
- The duplicate messages are received roughly every 30 seconds or so and are received 4-6 times before dying out.
- However, 30 second thing is not always true.
- Using QoS 0 when subscribing, stops these duplicate messages for some reason.
- Other MQTT client like mosquitto does not seem to have this issue when tested with the same AWS MQTT broker. (No duplicate messages with either QoS 0 or QoS 1)
For now, as a workaround I have refrained from using QoS 1 when subscribing to AWS MQTT topics but this behavior is something not desirable and might have unknown consequences when used in production.
Could you please look into this issue?
Metadata
Metadata
Assignees
Labels
No labels