--
You received this message because you are subscribed to the Google Groups "Volley Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to volley-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I managed to solve my issue by setting the keep-alive property to false inside android. eg:
System.setProperty("http.keepAlive", "false")
I added this line of code inside the class where I import requestqueue and make the requests.
Also, check if you server has the keep-alive header.
This post helped get to the solution.
DefaultRetryPolicy retryPolicy = new DefaultRetryPolicy(0, -1, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT);
request.setRetryPolicy(retryPolicy);
queue.add(request);
RetryPolicy mRetryPolicy = new DefaultRetryPolicy(
0,
DefaultRetryPolicy.DEFAULT_MAX_RETRIES,
DefaultRetryPolicy.DEFAULT_BACKOFF_MULT);
request.setRetryPolicy(mRetryPolicy);
OR
DefaultRetryPolicy retryPolicy = new DefaultRetryPolicy(0, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT);
request.setRetryPolicy(retryPolicy);
queue.add(request);
First param is timeout ( milli seconds)
How can we set connection.setChunkedStreamingMode(0); in openConnection method HurlStack class?I have tried to extend HurlStack but failed.Could you post some demo code? i tried all case, including change time out, change retry to 0 and System.setProperty("http.keepAlive", "false") but it still doesn't work.
--
You received this message because you are subscribed to the Google Groups "Volley Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to volley-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/volley-users/4d28f242-cb4e-41b4-b083-6e3fc18b9be0%40googlegroups.com.