Open sanket-kulkarni-vmware opened 7 years ago
Could you provide some logs / evidence that the connection is being lost without the callback being triggered?
@sanket-kulkarni-vmware Could you please provide more information on this issue? I would set trace callback and log the debug/error/exception messages. See:
https://github.com/eclipse/paho.mqtt.android/blob/develop/org.eclipse.paho.android.service/src/main/java/org/eclipse/paho/android/service/MqttAndroidClient.java#L1323 https://github.com/eclipse/paho.mqtt.android/blob/develop/org.eclipse.paho.android.service/src/main/java/org/eclipse/paho/android/service/MqttTraceHandler.java#L21
@sanket-kulkarni-vmware might this will help
https://github.com/eclipse/paho.mqtt.java/issues/27 https://github.com/eclipse/paho.mqtt.java/pull/317
Java Version: 1.8.0_101 Paho Version: 1.1.0
Paho client is silently dropping the connection with Broker, i.e it does not trigger the connection lost callback function but it has already disconnected with the broker.
Also, Paho client is disconnecting with broker even if there is network connectivity and Broker is up. My Paho client is receiving the messages at the rate of 10K messages/second of QoS 1.
Thank you.