I post a JsonRequest to a server. The server is slow and Volley tends to make multiple calls to the slow server because it didn't get a response from the first request (since my server is slow). Is there a way to prevent Volley from retrying a request so that it can receive the first response?
I have tried:
myRequest.setRetryPolicy(new DefaultRetryPolicy(
TIMEOUT_MS,
RETRIES,
BACKOFF_MULT));
I have replaced TIMEOUT_MS with 0, RETRIES with 0, and also BACKOFF_MULT with 0, but it didn't work.
Any suggestions?