commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex <alexn...@optonline.net>
Subject RE: common-httpclient socket timeout
Date Mon, 20 Mar 2006 18:44:46 GMT
Am I using the code below correctly to check that it doesn't take URL over
10 seconds to load?

SimpleHttpConnectionManager mr = new SimpleHttpConnectionManager();
mr.getParams().setConnectionTimeout(10000);
HttpClient client = new HttpClient(mr);  


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message