Closed miketran78727 closed 5 years ago
Mike - I don't think there is any reason to use anything other than Paho auto reconnect. That's what it is there for. We don't need to duplicate it. This library should allow no other setting IMO.
(You don't need a reconnect thread because calling connect in connectionLost is specifically allowed. I think what is happening here is auto reconnect and the old style operating at the same time).
Ian, I agree. We need to remove this reconnect logic.
By the way, Ian, autoreconect flag is off for this test. So, this could be a bug in Paho where this Connect already in progress
is set. I will investigate further.
Fix in master branch.
The reconnect logic is not working. If we do not use Paho Client's automatic reconnect function, we will need to create a thread to try reconnect for the users.
Here is junit test trace which shows connect() was invoked in callback thread.