Issue 33 in android-xmlrpc: Set the default socket and connection timeout

24 views
Skip to first unread message

android...@googlecode.com

unread,
Jan 3, 2012, 6:12:41 PM1/3/12
to android-x...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 33 by nicola.m...@gmail.com: Set the default socket and
connection timeout
http://code.google.com/p/android-xmlrpc/issues/detail?id=33

please add this:

public void setTimeout(int socket_timeout, int connection_timeout){
HttpConnectionParams.setSoTimeout(httpParams,socket_timeout);

HttpConnectionParams.setConnectionTimeout(httpParams,connection_timeout);
}

to XMLRPCClient.java the default timeout is 0 that mean unlimited, this
allow to set the desidered connection and socket timeout and avoid to hang
if there are problems to the xmlrpc server or network problems,

thanks
Nicola Murino

Reply all
Reply to author
Forward
0 new messages