hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Weber <ROLWE...@de.ibm.com>
Subject RE: How to test Connection timeout
Date Fri, 08 Dec 2006 07:48:34 GMT
Hello Lalit,

> When I am using clientParams.setSoTimeout(1); I am getting java.net.
> SocketTimeoutException: Read timed out error.
> 
> I think it is not same as ConnectTimeoutException.

No it is not. SO_TIMEOUT is for read, CONNECTION_TIMEOUT for connect.
http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/commons/httpclient/params/HttpConnectionParams.html#CONNECTION_TIMEOUT
http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/commons/httpclient/params/HttpConnectionParams.html#SO_TIMEOUT

hope that helps,
  Roland


Mime
View raw message