Return-Path: X-Original-To: apmail-hc-dev-archive@www.apache.org Delivered-To: apmail-hc-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3EBB617F6B for ; Mon, 7 Sep 2015 15:57:46 +0000 (UTC) Received: (qmail 87393 invoked by uid 500); 7 Sep 2015 15:57:46 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 87348 invoked by uid 500); 7 Sep 2015 15:57:46 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 87333 invoked by uid 99); 7 Sep 2015 15:57:46 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Sep 2015 15:57:46 +0000 Date: Mon, 7 Sep 2015 15:57:46 +0000 (UTC) From: "expert (JIRA)" To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (HTTPASYNC-83) request no sent when setConnectionManagerShared is set to true MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HTTPASYNC-83?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14733864#comment-14733864 ] expert edited comment on HTTPASYNC-83 at 9/7/15 3:56 PM: --------------------------------------------------------- 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" ? Thank you!!! was (Author: expert): 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()? How do I "assign one HttpAsyncClient instance to 'own' the connection manager" ? 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