You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Retry requests with a backoff strategy & keep max retries
* Keep max retries for now so we don't spam the server with requests when it is in trouble to avoid retrying forever.
* Let a request retry 4 times (so total 5 times) with backoff strategy calculated with multiples of 3.
* Remove some no longer used tag delay variables from common defines
[OneSignalLog onesignalLog:ONE_S_LL_DEBUG message:[NSStringstringWithFormat:@"Re-scheduling request (%@) to be re-attempted in %.3f seconds due to failed HTTP request with status code %i", NSStringFromClass([request class]), REATTEMPT_DELAY, (int)statusCode]];
336
+
//retry again in an increasing interval calculated with reattemptDelay
[OneSignalLog onesignalLog:ONE_S_LL_DEBUG message:[NSStringstringWithFormat:@"Re-scheduling request (%@) to be re-attempted in %.3f seconds due to failed HTTP request with status code %i", NSStringFromClass([request class]), reattemptDelay, (int)statusCode]];
0 commit comments