Okhttp: Exponential Backoff support

Created on 17 Apr 2016  路  2Comments  路  Source: square/okhttp

The Google's Http Client has an implementation of this algorithm which essentially improves the way retrying a request in case of failures. Is it possible to make yours ?

Additional info:
https://developers.google.com/api-client-library/java/google-http-java-client/backoff

All 2 comments

-1 ,
if it is user trigger, no data = no retry.
because server may return 500.

if you send data in background, you may retry yourself in own way.

I鈥檇 like to leave this up to the application layer. Backoffs might need to be scheduled in another process if a server is redeployed or an app is relaunched. It鈥檚 really awkward to hide the response indefinitely.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SandroMachado picture SandroMachado  路  3Comments

TheLester picture TheLester  路  3Comments

sargunv picture sargunv  路  3Comments

yschimke picture yschimke  路  3Comments

mleibner picture mleibner  路  3Comments