You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Arkaitz Jimenez (JIRA)" <ji...@apache.org> on 2018/10/04 09:14:00 UTC

[jira] [Updated] (HTTPASYNC-144) AbstractClientExchangeHandler does not make use of UserTokenHandler

     [ https://issues.apache.org/jira/browse/HTTPASYNC-144?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Arkaitz Jimenez updated HTTPASYNC-144:
--------------------------------------
    Description: 
While writing an async client that does make use of SSL, user token handling is essential for proper use of pooling.

I found 2 ways of passing the user token to the client:
 # Create a HttpClientContext and ctx.setUserToken(fixedString); and pass that context to execute(request, ctx);
 # Create the AsyncHttpClient via HttpAsyncClients.custom() and setting setUserTokenHandler((ctx)->fixedString);

The first one works no problem.

The second one fails because 

> AbstractClientExchangeHandler does not make use of UserTokenHandler
> -------------------------------------------------------------------
>
>                 Key: HTTPASYNC-144
>                 URL: https://issues.apache.org/jira/browse/HTTPASYNC-144
>             Project: HttpComponents HttpAsyncClient
>          Issue Type: Bug
>            Reporter: Arkaitz Jimenez
>            Priority: Major
>
> While writing an async client that does make use of SSL, user token handling is essential for proper use of pooling.
> I found 2 ways of passing the user token to the client:
>  # Create a HttpClientContext and ctx.setUserToken(fixedString); and pass that context to execute(request, ctx);
>  # Create the AsyncHttpClient via HttpAsyncClients.custom() and setting setUserTokenHandler((ctx)->fixedString);
> The first one works no problem.
> The second one fails because 



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org