paho.mqtt.java icon indicating copy to clipboard operation
paho.mqtt.java copied to clipboard

setAutomaticReconnectDelay not working

Open frank-montyne opened this issue 4 years ago • 1 comments

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

frank-montyne avatar Feb 06 '21 16:02 frank-montyne

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.

mrpiggi avatar Nov 02 '23 22:11 mrpiggi