I use the new Volley framework for Android to do a request to my server. But it timeouts before getting the response, although it does respond.
I tried adding this code:
HttpConnectionParams.setConnectionTimeout(httpParams, 5000);
HttpConnectionParams.setSoTimeout(httpParams, timeoutMs);
in HttpClientStack
of the Volley framework to a different integer (50000), but it still times out before 50 seconds.
Is there a way to change the timeout to a long value?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…