paho.mqtt.java
paho.mqtt.java copied to clipboard
setAutomaticReconnectDelay not working
Hi,
The MqttConnectionOptions.setAutomaticReconnectDelay(int, int) seems to have no effect. When looking in the source code the variables automaticReconnectMinDelay and automaticReconnectMaxDelay do not seem to be used anywhere. The only variable taken into account is maxReconnectDelay that is set using MqttConnectionOptions.setMaxReconnectDelay(). Is this intentional? If so why does setAutomaticReconnectDelay() exist?
Thanks, Frank
Please fill out the form below before submitting, thank you!
- [ x] Bug exists Release Version 1.2.5 ( Master Branch)
- [ ] Bug exists in MQTTv3 Client on Snapshot Version 1.2.6-SNAPSHOT (Develop Branch)
- [ ] Bug exists in MQTTv5 Client on Snapshot Version 1.2.6-SNAPSHOT (Develop Branch)
If this is a bug regarding the Android Service, please raise the bug here instead: https://github.com/eclipse/paho.mqtt.android/issues/new
For v3 there is no such setting in org.eclipse.paho.client.mqttv3.MqttConnectOptions
but in v5 org.eclipse.paho.mqttv5.client.MqttConnectionOptions#setAutomaticReconnectDelay
has certainly no effect as both fields set are never evaluated.