Joan Balagueró wrote:
Hello,
Just a question about exceptions sending http requests.
If I set a very low value to
HttpConnectionParams.setConnectionTimeout(this.objHttpParams,
connectionTimeout), httpclient throws “SocketTimeoutException” with the
message “connect timed out”, but I expected to receive a
“ConnectTimeoutException” (as HttpClient3). Is this right?
No, it is not. Please open a bug report in Jira for this issue
https://issues.apache.org/jira/browse/HTTPCLIENT
Oleg
The problem is that a response timeout also throws “SocketTimeoutException”
(with the message “Read timed out”, as expected). Then, should I read the
exception message to know which exception was thrown?
Thanks,
Joan.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]