-
Notifications
You must be signed in to change notification settings - Fork 754
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
Invoke RetryPolicy (on an opt-in basis) for NoConnectionErrors #332
Comments
I'm not really sure what you're asking here. OnConnectionException isn't anything I've heard of. In general you can call Request#setRetryPolicy to provide a RetryPolicy implementation which will retry requests however you see fit. In the future, if you have further questions, please use our user group at [email protected] if you are unable to get help via StackOverflow or other mechanisms. This is for tracking issues with Volley rather than for fielding general questions. |
sorry it's my mistake not 'OnConnectionException' , it's NoConnectionError. |
Got it. You're right that we don't currently retry these - the assumption has been that if there's no connection available on the device, then there's no point in retrying again immediately, and you'll need to wait until a connection comes back up. I'm open to a change in Volley to allow controlling this behavior and asking the RetryPolicy to decide what to do rather than assuming we shouldn't retry. #48 has some discussion on what a PR to fix this would look like. |
No description provided.
The text was updated successfully, but these errors were encountered: