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

Fix reconnecting if a list of hosts|uris was given. At the seconds+ failover

Open GreenRover opened this issue 6 years ago • 0 comments

If you give >=2 hosts/uris i fixed following bug:

Initial state: host a: passive host b: active

Connected to host b succesfull ;-)

Failover 1: host a: active host b: passive

Reconnected to host a succesfull ;-)

Failover 2: host a: passive host b: active

Only try to connect to host a but never to host b )-; Reconnection attempt will faill forever. CHANGE: Now on reconnect it will loop through all hosts until it find one up and running.

GreenRover avatar Sep 09 '19 09:09 GreenRover