Reconnect does not appear to work correctly. Client attempts reconnects forever.
Environment
Operating system: iOS
Software version: iOS 13.x
Package Manager: Cocoapods
MQTTClient version: We began building App in July 2019 using latest version. I do not know how to determine what version we are using. However if 0.9.9 is the latest release on 2017-09-21. We pulled lib early 2019.
MQTT Broker used: mosquitto 1.6.8
Steps to reproduce
1 - Connect iOS mqtt client to server - successful connect
2 - Change mqtt user name (or certs) on server reload config using -SIGHUP
3 - Client connection fails and reconnects begin. Reconnects continue forever.
Expected behaviour
Expected client to stop reconnects after maxretryInterval.
From debugger -- These values do not change - client attempts to reconnect forever.
_maxRetryInterval NSTimeInterval 5
_retryInterval NSTimeInterval 1
_currentRetryInterval NSTimeInterval 8
_maxRetryInterval NSTimeInterval 5
Actual behaviour
Expected reconnects to stop when maxRetryInteval is reached or at some point reconnects stop. We have a iOS client that has been attempting reconnects for weeks. We thought this was malicious behavior until we began looking into connection attempts. This is MQTT-Client-Framework attempting to reconnect forever.
Short description
Reconnect does not appear to work correctly. Client attempts reconnects forever.
Environment
Steps to reproduce
1 - Connect iOS mqtt client to server - successful connect 2 - Change mqtt user name (or certs) on server reload config using -SIGHUP 3 - Client connection fails and reconnects begin. Reconnects continue forever.
Expected behaviour
Expected client to stop reconnects after maxretryInterval.
From debugger -- These values do not change - client attempts to reconnect forever. _maxRetryInterval NSTimeInterval 5 _retryInterval NSTimeInterval 1 _currentRetryInterval NSTimeInterval 8 _maxRetryInterval NSTimeInterval 5
Actual behaviour
Expected reconnects to stop when maxRetryInteval is reached or at some point reconnects stop. We have a iOS client that has been attempting reconnects for weeks. We thought this was malicious behavior until we began looking into connection attempts. This is MQTT-Client-Framework attempting to reconnect forever.