I have only one broker is my environment and I am using the failover url in my client code.
The failover url is
I have specified maxReconnectAttempts as 1000 so if my broker is down my client will try atleast 1000 times for reconnect before giving the error.
But as soon as my broker is down, my client exits after trying one time to reconnect.
My client is supposed to try atleast 1000 times to reconnect.