By default, the the python client will attempt to reconnect by looping connection attempts to brokers on the broker list.
The reconnect loop will only attempt to connect to a broker after a set amount of time dictated by a backoff timer, to avoid spamming the network with connection attempts in the case of a large number of clients losing connection to their brokers at once.
The settings to control reconnect behavior can be seen in the OpenDXL Python Client Documentation for the dxlclient.client_config module, or below:
|Multiples the current reconnect delay by this value on subsequent connect retries. For example, a current
delay of 3 seconds with a multiplier of 2 would result in the next retry attempt being in 6 seconds.
|The initial delay between retry attempts in seconds. The delay increases (“backs off”)
as subsequent connection attempts are made.
|The maximum delay between connection retry attempts in seconds
60 seconds (1 minute)
|Get the randomness delay percentage (between 0.0 and 1.0). The default value is 0.25
|Whether the client will continuously attempt to reconnect to the fabric if it becomes disconnected