mrozycki/rustmas

Properly handle unstable/lost connection to remote lights

Closed this issue · 0 comments

Currently the animator will exit the moment a single request to remote lights fails, which might happen relatively frequently with a spotty connection. Additionally, turning the lights off and on again (e.g. for the night) should not require a restart of the server.

The remote light client should therefore retry failed requests, ideally with a sensible backoff, so that the network is not bombarded with failed requests for hours if the lights are turned off.