android-volley icon indicating copy to clipboard operation
android-volley copied to clipboard

Duplicated POST -request with slow request

Open jikun2008 opened this issue 8 years ago • 7 comments

Android Volley double post when have slow request. this url http://stackoverflow.com/questions/22428343/android-volley-double-post-when-have-slow-request

jikun2008 avatar Jan 25 '16 08:01 jikun2008

yes facing the same issue. did you find the answer

ibu2710 avatar Jan 25 '17 18:01 ibu2710

i have the same issue

VitaliPekelis avatar Apr 25 '17 09:04 VitaliPekelis

anyone found the solution

ibu2710 avatar May 23 '17 08:05 ibu2710

This is work for me.

`public class MyRetryPolicyWithoutRetry implements RetryPolicy { @Override public int getCurrentTimeout() { return CONNECTION_TIME_OUT; /200000/ }

@Override
public int getCurrentRetryCount()
{
    return 0;
}

@Override
public void retry(VolleyError error) throws VolleyError
{
    throw(error);
}

}`

request.setRetryPolicy(new MyRetryPolicyWithoutRetry());

VitaliPekelis avatar May 25 '17 05:05 VitaliPekelis

3q for it i already use retrofit2

jikun2008 avatar May 25 '17 07:05 jikun2008

VitaliPekelis where to add this...

does it solve the issue originally

I implemented this... Will it help me ... please suggest me i am in a hurry

I will be more thankful

ibu2710 avatar May 25 '17 10:05 ibu2710

ibrahim-appgodz, for me it solve the issue... setRetryPolicy to your request ...

com.android.volley.Request.setRetryPolicy(new MyRetryPolicyWithoutRetry());

VitaliPekelis avatar Jun 02 '17 04:06 VitaliPekelis