Skip to content

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

Open
GreenRover wants to merge 1 commit into
eclipse-paho:developfrom
GreenRover:develop
Open

Fix reconnecting if a list of hosts|uris was given. At the seconds+ failover#204
GreenRover wants to merge 1 commit into
eclipse-paho:developfrom
GreenRover:develop

Conversation

@GreenRover

Copy link
Copy Markdown

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.

…ailover

Signed-off-by: Heiko Henning UE85540 <heiko.henning@sbb.ch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant