Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.4
-
None
-
None
Description
Event though timeout is set on org.apache.axis.client.Stub, during connection set up, client still hangs forever if server doesn't respond.
Found out that in JSSESocketFactory.java, the code is not set timeout before calling handshaking between client and server which will hang forever if server doesn't response.
Made a fix to set the timeout before handshaking in JSSESocketFactory.java
String obj = (String)attributes.get(DefaultSocketFactory.CONNECT_TIMEOUT);
int timeout = 0;
if (obj != null)
timeout = Integer.parseInt(obj);
if(timeout > 0)
((SSLSocket) sslSocket).startHandshake();
if (log.isDebugEnabled())