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 ED6D7C39C for ; Thu, 13 Jun 2013 15:09:23 +0000 (UTC) Received: (qmail 95643 invoked by uid 500); 13 Jun 2013 15:09:23 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 95441 invoked by uid 500); 13 Jun 2013 15:09:23 -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 95418 invoked by uid 99); 13 Jun 2013 15:09:22 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Jun 2013 15:09:22 +0000 Date: Thu, 13 Jun 2013 15:09:22 +0000 (UTC) From: "Oleg Kalnichevski (JIRA)" To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HTTPASYNC-45) CachingHttpAsyncClient Always Returns Backend's Future 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-45?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13682320#comment-13682320 ] Oleg Kalnichevski commented on HTTPASYNC-45: -------------------------------------------- James, What would you want me to do about the latest version of the patch? Can you rebuild it against the latest SVN trunk? Oleg > CachingHttpAsyncClient Always Returns Backend's Future > ------------------------------------------------------ > > Key: HTTPASYNC-45 > URL: https://issues.apache.org/jira/browse/HTTPASYNC-45 > Project: HttpComponents HttpAsyncClient > Issue Type: Bug > Affects Versions: 4.0-beta4 > Reporter: James Leigh > Labels: patch > Fix For: 4.0-beta5 > > Attachments: HTTPASYNC-45.patch > > > CachingHttpAsyncClient#execute methods always return the Future object from the backend HttpAsyncClient. Calling Future#get() returns the backend HttpResponse (such as 304) instead of the response in the cache. > CachingHttpAsyncClient should create and use its own Future object that overrides the Future#get() to return the HttpResponse in the cache. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org