berconpy.ConnectorConfig

class berconpy.ConnectorConfig(run_interval=1.0, keep_alive_interval=30.0, initial_connect_attempts=3, connection_timeout=3.0)

Bases: object

Specifies the configuration used for the AsyncClientConnector.

Attributes

connection_timeout

The amount of time in seconds to wait after a login attempt before retrying.

initial_connect_attempts

The number of attempts that should be done when the RCON client is first connecting.

keep_alive_interval

The amount of time in seconds should the connection wait from the last command before sending another command to keep the connection alive.

run_interval

The amount of time in seconds to wait between each run loop iteration (which handles re-connecting and sending keep alive packets).

connection_timeout: float = 3.0

The amount of time in seconds to wait after a login attempt before retrying.

initial_connect_attempts: int = 3

The number of attempts that should be done when the RCON client is first connecting.

After a successful connection, this value is ignored and the connector will indefinitely attempt to reconnect unless authentication is denied.

keep_alive_interval: float = 30.0

The amount of time in seconds should the connection wait from the last command before sending another command to keep the connection alive.

For optimal stability, this interval should be below 45 seconds.

run_interval: float = 1.0

The amount of time in seconds to wait between each run loop iteration (which handles re-connecting and sending keep alive packets).