Wednesday, October 30, 2013

android send json via jsonrpc timeout error on slow internet connection [android help]


android send json via jsonrpc timeout error on slow internet connection


django - android send json via jsonrpc timeout error on slow internet connection - Stack Overflow







Tell me more ×

Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
















I have developed an app that require send and recieve data to django server with jsonrpc protocol on fast internet connection every thing is ok but on slow connection I recieve timeout connection error even I set timeout to 30000 but the problem already exist this is my code:



import org.alexd.jsonrpc.JSONRPCClient;
import org.alexd.jsonrpc.JSONRPCException;
import org.alexd.jsonrpc.JSONRPCParams;

JSONArray ja = null;
JSONRPCClient client = JSONRPCClient.create(Uri.decode(url).toString(), JSONRPCParams.Versions.VERSION_2);
client.setConnectionTimeout(30000);
client.setSoTimeout(30000);
return client.callString("getToday", "today");


Thank you for your help



















default






Read more

stackoverflow.comm



No comments:

Post a Comment

Google Voice on T-Mobile? [General]

Google Voice on T-Mobile? So I recently switched from a GNex on Verizon to a Moto X DE on T-Mobile. I had always used Google Voice for my v...