I think I may have found the issue. When the binding is connected and at some point gets disconnected, a scheduler is set to automatically try to reconnect after a configurable number of seconds (default=60).
But… if a connection attempt fails (so thats a different scenario), then the disconnected callback function isn’t invoked which results in the scheduler not being set for automatic reconnection.
So, I have added a call to the disconnected callback function when a connection attempt fails. That should cause the reconnect task to be scheduled. I also added some extra debug logging.
I have uploaded a 3.0.1-SNAPSHOT version. Feel free try this version and let me know if it solves the issue.
Also, I created issue #9903 and will create a PR to merge the change if tests are succesful.
If anyone is interested… code is here.