davx5-ose/app
Sunik Kupfer 5640250359 Wait an appropriate delay before SyncWorker retries after soft errors (bitfireAT/davx5#337)
* Use appropriate delayUntil value for retrying syncs on 503s.

Crop server suggested retryAfter value to self defined min/max values and use a reasonable default value if non-existent.

* Add tests for getDelayUntil

* Wait appropriate delay, before retrying sync after a soft error happened

* Increase max and default sync delays after soft errors

* Increase initial backoff time for SyncWorker retries

* Minor getDelayUntil changes

* Minor changes

- store delayUntil in seconds
- pass duration instead of timestamp to Thread.sleep
- other minor changes

* Use Instant instead of Long timestamps

* Correct calculation of blocking duration

* Indicate soft error occurred on 503 server message

---------

Co-authored-by: Ricki Hirner <hirner@bitfire.at>
2023-09-05 20:30:52 +02:00
..
schemas/at.bitfire.davdroid.db.AppDatabase show real name of davowner (bitfireAT/davx5#208) 2023-02-20 13:29:56 +01:00
src Wait an appropriate delay before SyncWorker retries after soft errors (bitfireAT/davx5#337) 2023-09-05 20:30:52 +02:00
.gitignore Minor code tweaks (by lint) 2014-12-21 11:24:00 +01:00
build.gradle Update dependencies (including vcard4android), bump version to 4.3.6-rc.1 2023-09-05 10:42:33 +02:00
lint.xml Version 0.7 2015-03-12 18:25:09 +01:00
proguard-rules-release.pro Fix ProGuard rules for R8 (AGP 8.0) 2023-05-01 11:00:37 +02:00