[
https://issues.apache.org/jira/browse/CXF-7818?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16582256#comment-16582256
]
Colm O hEigeartaigh commented on CXF-7818:
------------------------------------------
What does your full client code look like? Are you configuring the conduit
before each call? If so try just configuring the conduit once before the first
dispatch.invoke is called.
> 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
> Priority: Major
> Original Estimate: 48h
> Remaining Estimate: 48h
>
> 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)