[ https://issues.apache.org/jira/browse/CXF-6969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15663053#comment-15663053 ]
Freeman Fang commented on CXF-6969: ----------------------------------- I took a close look at the code, I believe the configuration for httpclient are already available. In the org.apache.cxf.jaxrs.client.spec.ClientImpl, if users specify property "http.connection.timeout" and "http.receive.timeout" through JAX-RS 2 client api, those properties are set per connection through code {code} Long connTimeOutValue = getLongValue(configProps.get(HTTP_CONNECTION_TIMEOUT_PROP)); if (connTimeOutValue != null) { clientCfg.getHttpConduit().getClient().setConnectionTimeout(connTimeOutValue); } Long recTimeOutValue = getLongValue(configProps.get(HTTP_RECEIVE_TIMEOUT_PROP)); if (recTimeOutValue != null) { clientCfg.getHttpConduit().getClient().setReceiveTimeout(recTimeOutValue); } {code} And later on in AsyncHTTPConduit, the connectionTimeout and receiveTimeout of HTTPClientPolicy are retrieved and set into AHC RequestConfig per each connection setup. For other properties listed in CXF-6964 like maxConnHost and maxConnTotal, this should be JVM wide configuration for AHC and shouldn't be configured for each client, as there may be multiple client in the JVM, in CXF, we need configuration those properties at the Bus level, please take a look at [1] to get more details. [1]http://cxf.apache.org/docs/asynchronous-client-http-transport.html > CXF Async HTTP Transport - add supports to configure httpclient with new > method > ------------------------------------------------------------------------------- > > Key: CXF-6969 > URL: https://issues.apache.org/jira/browse/CXF-6969 > Project: CXF > Issue Type: Improvement > Components: Transports > Reporter: Chester Kim > Assignee: Freeman Fang > > Refer to https://issues.apache.org/jira/browse/CXF-6964 > Configuration of timeout and etc of httpclient with properties are deprecated > in the latest version of apache httpcomponents. We need to go with new way > (Configuration class). -- This message was sent by Atlassian JIRA (v6.3.4#6332)