Closed dennynguyen closed 6 years ago
Thanks for raising this @dennynguyen, When I fixed the issue with persisting messages with Topic aliases, I forgot to add the same check / strip to the DisconnectedMessageBuffer as well. I've now done this and added tests to validate.
I'm still getting the same problem after the fix.
More details on the test case:
/SM_03
in this case
Ok, I've written a new test case to cover this scenario and found the source of this problem, the topic alias queue wasn't being cleared on closure of the TCP connection. The build with this fix is available here: https://repo.eclipse.org/content/repositories/paho-snapshots/org/eclipse/paho/org.eclipse.paho.mqttv5.client/1.2.1-SNAPSHOT/org.eclipse.paho.mqttv5.client-1.2.1-20180502.102547-23.jar
works now
Please fill out the form below before submitting, thank you!
If this is a bug regarding the Android Service, please raise the bug here instead: https://github.com/eclipse/paho.mqtt.android/issues/new
Topic alias still doesn't seem to be working right.
Paho client connects, publishes message to topic Messagesight trace:
Subsequent messages have topic alias
We restart the server, which disconnects the clients. When the clients reconnect (new connection), the topic alias is not working correctly