mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Merge pull request #6119 from element-hq/feature/bma/handleHttp429
Ensure http 429 are retried 3 times before failing.
This commit is contained in:
+2
-1
@@ -161,7 +161,8 @@ class RustMatrixClientFactory(
|
|||||||
.requestConfig(
|
.requestConfig(
|
||||||
RequestConfig(
|
RequestConfig(
|
||||||
timeout = 30_000uL,
|
timeout = 30_000uL,
|
||||||
retryLimit = 0u,
|
// retryLimit must be non-zero for the SDK to retry API calls in case of error (including 429 Too Many Requests error).
|
||||||
|
retryLimit = 3u,
|
||||||
// Use default values for the rest
|
// Use default values for the rest
|
||||||
maxConcurrentRequests = null,
|
maxConcurrentRequests = null,
|
||||||
maxRetryTime = null,
|
maxRetryTime = null,
|
||||||
|
|||||||
Reference in New Issue
Block a user