Thomas Günter created CAMEL-10640:
-------------------------------------

             Summary: Custom AsyncHttpClientConfig not used in WsEndpoint
                 Key: CAMEL-10640
                 URL: https://issues.apache.org/jira/browse/CAMEL-10640
             Project: Camel
          Issue Type: Bug
          Components: camel-ahc-ws
    Affects Versions: 2.18.1
            Reporter: Thomas Günter


Provided custom AsyncHttpClientConfig is not used by WsEndpoint.java.

Current implementation: 
{code:title=WsEndpoint.java:109|borderStyle=solid}
    protected AsyncHttpClient createClient(AsyncHttpClientConfig config) {
        AsyncHttpClient client;
        if (config == null) {
            config = new DefaultAsyncHttpClientConfig.Builder().build();
            client = new DefaultAsyncHttpClient(config);
        } else {
            client = new DefaultAsyncHttpClient();
        }
        return client;
    }
{code}

Expected implementation:
{code:title=WsEndpoint.java:109|borderStyle=solid}
    protected AsyncHttpClient createClient(AsyncHttpClientConfig config) {
        AsyncHttpClient client;
        if (config == null) {
            config = new DefaultAsyncHttpClientConfig.Builder().build();
            client = new DefaultAsyncHttpClient(config);
        } else {
            client = new DefaultAsyncHttpClient(config);
        }
        return client;
    }
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to