Skip to content

Commit cf473db

Browse files
authored
Retry on response code 429 (#454)
1 parent 628a198 commit cf473db

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

LeanplumSDK/LeanplumSDK/Classes/Managers/Networking/LPRequestSender.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ - (void)sendRequests
283283
// Retry on 500 and other network failures.
284284
NSInteger httpStatusCode = completedOperation.HTTPStatusCode;
285285
if (httpStatusCode == 408
286+
|| httpStatusCode == 429
286287
|| (httpStatusCode >= 500 && httpStatusCode < 600)
287288
|| err.code == NSURLErrorBadServerResponse
288289
|| err.code == NSURLErrorCannotConnectToHost

0 commit comments

Comments
 (0)