You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "expert (JIRA)" <ji...@apache.org> on 2015/09/07 19:09:45 UTC

[jira] [Issue Comment Deleted] (HTTPASYNC-83) request no sent when setConnectionManagerShared is set to true

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

expert updated HTTPASYNC-83:
----------------------------
    Comment: was deleted

(was: Oleg, could you please demonstrate what needs to be changed in provided example in order to make it work ? I've spent 2 hours and cannot find the solution :(

When do I need to call PoolingNHttpClientConnectionManager.execute?
Where do I get IOEventDispatch to pass as parameter to execute()?
Shall I call execute for every created client ?
How do I "assign one HttpAsyncClient instance to 'own' the connection manager" ?

This is how my code looks like: https://gist.github.com/cppexpert/e0a7fcabaa5d3abe8f05
Thank you!!!)

> 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
>         Attachments: TestShared.java
>
>
> 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
(v6.3.4#6332)

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