mhthies / smarthomeconnect

Python 3 AsyncIO-based home automation and interfacing framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

interfaces: Reconnect backoff timeout should be resetted upon successful connection

mhthies opened this issue · comments

SupervisedClientInterface implements an exponential backoff timeout before reconnect, which is used by interfaces like shc_client, mqtt and others. However, the exponential backoff time is not resetted, once the connection can successfully be re-established, resulting in a overly long reconnection timeout when the next interruption occurs.