aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/android/volley/Response.java
diff options
context:
space:
mode:
authorJeff Davidson <jpd@google.com>2015-10-15 15:26:10 -0700
committerJeff Davidson <jpd@google.com>2016-03-10 13:49:44 -0800
commitdd439dcb42093fde4452e320f3a9c4bfa2066def (patch)
tree2c11e4241d60b61edddbc842f82cf6aeeed73b3e /src/main/java/com/android/volley/Response.java
parentf605da3d9e6590351cb0bb26bb6ba5146952777c (diff)
downloadvolley-dd439dcb42093fde4452e320f3a9c4bfa2066def.tar.gz
Retry more errors in Volley's BasicNetwork.
Always retry I/O errors while reading the HTTP response entity. Furthermore, if a client opts in, retry HTTP 500 errors indicating something went wrong on the server. This resolves a longstanding TODO to only throw a ServerError on 5xx errors by adding a ClientError for 4xx errors. For backwards compatibility, this extends ServerError. Note that Volley already may retry a request that reached the server if the connection times out, which means that lack of idempotency shouldn't be a concern here if it wasn't already. But if we wanted to be even safer, we could require clients to opt into the additional retry cases, at the cost of a somewhat more polluted API. Add unit tests for most failure scenarios. Bug: 23152983 Change-Id: I92cf35c66ccf98a1682adf41654afeb8634911db
Diffstat (limited to 'src/main/java/com/android/volley/Response.java')
0 files changed, 0 insertions, 0 deletions