Loopj's AsyncHttpclient not setting the correct timeout

Viewed 7255

I tried setting my asynchttpclient's timeout in my singleton class but it seems that it doesn't change. I got the 10000 which I think is the default value.

client.setMaxRetriesAndTimeout(0,5000);
Log.i("loopj", ""+ client.getTimeout());

EDIT:

client.setTimeout(5000);

this method is working but for the information, how come setMaxRetriesAndTimeout doesn't?

1 Answers
Related