Better handle network issues
Sometimes users are getting failures when downloading data:
- "Software caused connection abort."
- "Connection closed."
It seems these happen when there are network issues - and they may happen after few minutes after a request for a file (but seen a failure reported in logs after 2 hours since the request!)
We should try to be more resilient to such errors, especially if there are a few GB of data to download. Maybe we should be able to recognize a half-downloaded project and continue where the download got stuck.
We should retry both failing chunk downloads and uploads - with large projects and a bad connection it can be hard to get sync to finish...
Download is now doing retries, upload remains, see related ticket https://github.com/MerginMaps/server-private/issues/2825