-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
Added Support for Automatic Retry #2337
Conversation
…fferent error code due to network fluctuation.
…fferent error code due to network fluctuation.
You are using |
Please add copyright headers in all files and fix package names |
@dodgex I will correct that one. |
@PromanSEW can you guide me with that? |
@dalwadi2 you can remove imports because it is the same package |
@@ -0,0 +1,89 @@ | |||
/* | |||
* Copyright (C) 2012 Square, Inc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is 2017 now
@PromanSEW solved. |
Still, Travis checks failed. |
@@ -0,0 +1,15 @@ | |||
package retrofit2; | |||
|
|||
import Call; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These "imports" are unnecessary and break build. Same for other files. Please remove them
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
Also you forgot copyright headers |
@PromanSEW |
@PromanSEW thanks for your Support |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think Retrofit is the right layer for this behavior. Instead, doing it as an OkHttp interceptor allows finer control of the connection configuration etc.
@JakeWharton can you please tell me the reason for closing this? or any Suggestion that how I make better this functionality? |
I echo Jesse's comments. See also #2180 (comment). |
Okay, thanks. |
Is this (or similar) behaviour available in OkHTTP? |
Create RetryHelper Functionality for poor network APIs which gives different error code due to network fluctuation.