eclipse-paho / eclipse-paho/paho.mqtt.java
setAutomaticReconnectDelay not working
- Dominant language
- Java
- Stars
- 2.3k
- Forks
- 919
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
Research direction
Search the Java source for MqttConnectionOptions.setAutomaticReconnectDelay(int, int) and trace where automaticReconnectMinDelay, automaticReconnectMaxDelay, and maxReconnectDelay are consumed. Done means establishing whether the configured automatic-reconnect bounds affect behavior and adding coverage for the reported 1.2.5 case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100