You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Julien ALLANOS <ju...@aql.fr> on 2005/01/28 09:29:42 UTC

Socket timeouts with axis-1.2rc2

Hello,

I'm still having troubles to set the socket connection timeout for an Axis
client.
I'm using:

call.setTimeout(new Integer(10000));
call.setProperty(Call.CONNECTION_TIMEOUT_PROPERTY, new Integer(10000));

in order to shorter the socket timeout to 10s, but it seems these methods only
change the timeout used *once* connected to the SOAP server. If my client tries
to connect to a server that doesn't exist (i.e. that has a correct but
non-living IP address), it waits 3 to 4 minutes before a SocketTimeoutException
is thrown.

This socket connection timeout is far too long for my application, that's why I
want to lower it to 10 sec. I've found bug #18277, where comment #9 talks about
this issue, but this bug is August, 2003 old and i still opened. However, I can
see in org.apache.axis.components.net.DefaultSocketFactory that there are
methods for creating sockets with a specified timeout, but I don't know how to
use them.

Anyone can help me please? Thanks for feedback.
-- 
Julien ALLANOS
Silicomp-AQL