DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18277>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18277

Socket Timeouts for Axis Clients





------- Additional Comments From [EMAIL PROTECTED]  2003-08-05 09:45 -------
I've encountered a problem with the timeout feature.  If the server being
connected to is not available, the timeout isn't honoured.  The create method in
org.apache.axis.components.net.DefaultSocketFactory opens a java.net.Socket
using the host, port constructor.  This socket attempts to make the connection,
but there is no timeout setting on the socket.

Could I ask for the timeout setting to be passed all the way down to the socket?
 The DefaultSocketFactory has an attributes Hashtable property to which could be
added the timeout value and then the socket could be constructed as follows:

sock = new Socket();
SocketAddress address = new InetSocketAddress(host, port);
Integer timeOut = (Integer)attributes.get("axis.connect.timeout");
sock.connect(address, timeOut.intValue());

Thanks in advance.

Reply via email to