On Thu, Nov 09, 2006 at 07:39:16PM +0100, Oleg Kalnichevski wrote:
> > Okay, is it possible to tell HttpClient try, for instance, 5 times before
> > giving up with such Exception?
> Yes, it is.
> http://jakarta.apache.org/commons/httpclient/exception-handling.html

As far as I can see this exception handler can handle only exceptions derived
from IOEXception - but not java.net.SocketException etc?

> Apparently HttpClient failed to correctly detect the JVM level and fall
> back on the ControllerThreadSocketFactory, which is the only way to
> implement connection timeout in older JVMs and it is not very reliable.
> On JVMs >= 1.4 HttpClient tries to use refection to make use of socket
> methods available since 1.4 to set the connection timeout.
> Consider implementing a custom socket factory and make direct use of the
> functionality available in newer JVMs
> http://svn.apache.org/repos/asf/jakarta/commons/proper/httpclient/trunk/src/java/org/apache/commons/httpclient/protocol/ReflectionSocketFactory.java

Just to make it clear - should I set ReflectionSocketFactory.java to
HttpClient, or I need to write my own implementation?

-- 
Eugene N Dzhurinsky

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to