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

How to config network retries and timeout policy? #498

Open
itman85 opened this issue Jul 10, 2016 · 6 comments
Open

How to config network retries and timeout policy? #498

itman85 opened this issue Jul 10, 2016 · 6 comments

Comments

@itman85
Copy link

itman85 commented Jul 10, 2016

Is there a way to config network retries number and timeout in parse sdk? It's quite annoying when parse sdk auto retry 5 times when there response lately from server. In my case, I don't want parse sdk retry. How to config for this? Thanks

@ghost
Copy link

ghost commented Jul 11, 2016

Waiting while Parse SDK tries to connect is cumbersome. Didn't find anything in the docs to set a limit for that.

Now it looks like this:

  1. A simple SomeParseObject.saveInBackground() is executed
  2. Sit looking at not responding UI
  3. Hey, black screen!
  4. UI finally updates

Could someone resolve this?

@muneeshseedoc
Copy link

muneeshseedoc commented Sep 8, 2016

Use open source sdk and modify retry number and timeout in sdk.

@recaldev
Copy link

recaldev commented Sep 9, 2016

So there is no way to set this at the moment? Would be awesome to do it like the SDK on iOS where you can set a networkRetryAttempts on the ParseClientConfiguration.

tnache pushed a commit to tnache/Parse-SDK-Android that referenced this issue Feb 6, 2017
… default socketTimeout and max number of retries
@rogerhu
Copy link
Contributor

rogerhu commented Mar 8, 2017

The PR reference looks like a good starting point to add configuration options...

@natario1
Copy link
Contributor

Timeout policy should be already exposed in the okhttp builder. Retries still missing though, see also #683

@lukyanov
Copy link

My two cents: #764 (comment)

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

No branches or pull requests

6 participants