zieren / ip-anemometer

Web Anemometer with Raspberry Pi
http://zieren.de
GNU General Public License v3.0
9 stars 4 forks source link

Exponential backoff #29

Open zieren opened 9 years ago

zieren commented 9 years ago

Should do exponential backoff when upload fails. Failure mode: Server chokes on the data uploaded, client adds more data, tries again after 1 minute, server still chokes etc. -> bandwith is used up, which is bad for GSM links.

zieren commented 8 years ago

This could also address the case where a server update breaks compatibility with an old client to the extent that the client doesn't receive an exit:102 (update client) command. If the client simply restarts with a special error code indicating unconditional update (i.e. as if no current/main.py existed), this would both empty the client's upload buffer and push a new version.