Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add conformance to AFire protocol RequestRetrier #11

Closed
wants to merge 1 commit into from
Closed

Add conformance to AFire protocol RequestRetrier #11

wants to merge 1 commit into from

Conversation

RudyB
Copy link

@RudyB RudyB commented Mar 15, 2018

I implemented a new class SpartanRequestRetrier that conforms to the Alamofire protocol SpartanRequestRetrier. I then configured it in SpartanRequestManager class. If the request fails due to a server error, the request will be retried in 1 second.

My concerns:

  • I am afraid this can end up becoming endlessly recursive.
  • We should give the user the option to enable this feature.
  • Are there more error codes that should be retried?
  • Is 1 second the proper amount of time to wait to retry?

I implemented a new class `SpartanRequestRetrier` that conforms to the Alamofire protocol `SpartanRequestRetrier`. I then configured it in `SpartanRequestManager` class. If the request fails due to a server error, the request will be retried in 1 second.

My concerns:
- I am afraid this can end up becoming endlessly recursive.
- We should give the user the option to enable this feature.
-  Are there more error codes that should be retried?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant