Open zieren opened 9 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.
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.