boonhock created CXF-7818:
-----------------------------

             Summary: HTTPConduit - timeout ignore when using dispatch as client
                 Key: CXF-7818
                 URL: https://issues.apache.org/jira/browse/CXF-7818
             Project: CXF
          Issue Type: Bug
          Components: JAX-WS Runtime
    Affects Versions: 3.2.4
            Reporter: boonhock


Hi  All, I am using org.apache.cxf.transport.http.HTTPConduit as HTTP session 
and javax.xml.ws.Dispatch as client. I am trying to set connection timeout to 
10 minutes so that it is still alive after it received the response (persistent 
connection). However, the second message do not use the same connection as the 
first one.

After the first message end, if I execute it to send second SOAP message 
between 4 seconds, it is still using the same connection.

Thus, I would like to ask am I missing something here?

 

Code:

Client client = ((DispatchImpl) dispatch).getClient();
 HTTPConduit conduit = (HTTPConduit) client.getConduit();
 
 TLSClientParameters tlsClientParameters = new TLSClientParameters();
 tlsClientParameters.setSSLSocketFactory(socketFactory);
 tlsClientParameters.setDisableCNCheck(true);
 conduit.setTlsClientParameters(tlsClientParameters);
 
 conduit.getClient().setConnection(ConnectionType.KEEP_ALIVE);
 conduit.getClient().setConnectionTimeout(600000);
 conduit.getClient().setAllowChunking(false);
 conduit.getClient().setReceiveTimeout(600000);

SOAPMessage response = dispatch.invoke(requestSource);

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to