hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HTTPASYNC-83) request no sent when setConnectionManagerShared is set to true
Date Thu, 30 Oct 2014 13:04:33 GMT

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

Oleg Kalnichevski resolved HTTPASYNC-83.
    Resolution: Not a Problem

If an HttpAsyncClient instance has been configured to use a shared connection manager, it
will make _no_ attempts to either start it up or to shut it down. Connection manager life
cycle becomes responsibility of the caller. Just make sure to call PoolingNHttpClientConnectionManager#execute
from a worker thread or assign one HttpAsyncClient instance to 'own' the connection manager.


> request no sent when setConnectionManagerShared is set to true
> --------------------------------------------------------------
>                 Key: HTTPASYNC-83
>                 URL: https://issues.apache.org/jira/browse/HTTPASYNC-83
>             Project: HttpComponents HttpAsyncClient
>          Issue Type: Bug
>    Affects Versions: 4.1-beta1
>            Reporter: Sylvere Richard
> I'm trying to use the setting setConnectionManagerShared(true) :
> 		final CloseableHttpAsyncClient httpclient = HttpAsyncClients.custom()
> 				.setDefaultCookieStore(cookieStore)
> 				.setConnectionManager(connManag)
> 				.setConnectionManagerShared(true)
> 				.build();
> But when setConnectionShared is true, the request is never sent.
> When set to false, everything works perfectly.

This message was sent by Atlassian JIRA

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

View raw message