I don't believe that will work.

In class org.apache.axis.transport.http.HTTPSender, this method:

protected void getSocket(SocketHolder sockHolder,
                         MessageContext msgContext,
                         String protocol,
                         String host, int port, int timeout, 
                         StringBuffer otherHeaders, 
                         BooleanHolder useFullURL)
        throws Exception 
{
        Hashtable options = getOptions();
        if(timeout > 0) {
            if(options == null) {
                options = new Hashtable();
            }
 
options.put(DefaultSocketFactory.CONNECT_TIMEOUT,Integer.toString(timeou
t));
        }
        SocketFactory factory =
SocketFactoryFactory.getFactory(protocol, options);
        if (factory == null) {
            throw new IOException(Messages.getMessage("noSocketFactory",
protocol));
        }
        Socket sock = factory.create(host, port, otherHeaders,
useFullURL);
        if(timeout > 0) {
            sock.setSoTimeout(timeout);
        }
        sockHolder.setSocket(sock);
    }



-----Original Message-----
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Kent Tong
Sent: Sunday, December 25, 2005 8:16 AM
To: [email protected]
Subject: Re: How to set an SSL socket connect timeout value?

David Penaskovic <DPenaskovic <at> silver-peak.com> writes:

> I can't figure out how to set the timeout value for an initial SSL
> socket connect. The default varies from platform to platform and I
would
> like to set this value explicitly.

Have you tried:

  call.setTimeout(timeout);



Reply via email to