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 CBC9A18BFF for ; Mon, 11 Jan 2016 23:18:40 +0000 (UTC) Received: (qmail 58849 invoked by uid 500); 11 Jan 2016 23:18:40 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 58555 invoked by uid 500); 11 Jan 2016 23:18:40 -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 58138 invoked by uid 99); 11 Jan 2016 23:18:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jan 2016 23:18:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id D6A942C1F60 for ; Mon, 11 Jan 2016 23:18:39 +0000 (UTC) Date: Mon, 11 Jan 2016 23:18:39 +0000 (UTC) From: "Brian Chang (JIRA)" To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HTTPASYNC-101) CachingHttpAsyncClient doesn't create HttpContext MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Brian Chang created HTTPASYNC-101: ------------------------------------- Summary: CachingHttpAsyncClient doesn't create HttpContext Key: HTTPASYNC-101 URL: https://issues.apache.org/jira/browse/HTTPASYNC-101 Project: HttpComponents HttpAsyncClient Issue Type: Bug Affects Versions: 4.1.1 Reporter: Brian Chang In the below example, execute is being called with a {{HttpContext}} of null. This has been causing me issues further down the line in Apache code. http://grepcode.com/file/repo1.maven.org/maven2/org.apache.httpcomponents/httpasyncclient-cache/4.1/org/apache/http/impl/client/cache/CachingHttpAsyncClient.java/#253 {code} 248 @Override 249 public Future execute( 250 final HttpAsyncRequestProducer requestProducer, 251 final HttpAsyncResponseConsumer responseConsumer, 252 final FutureCallback callback) { 253 return execute(requestProducer, responseConsumer, null, callback); 254 } {code} In the abstract implementation, {{new BasicHttpContext()}} is used. http://grepcode.com/file/repo1.maven.org/maven2/org.apache.httpcomponents/httpasyncclient/4.1/org/apache/http/impl/nio/client/AbstractHttpAsyncClient.java#552 {code} 547 @Override 548 public Future More ...execute( 549 final HttpAsyncRequestProducer requestProducer, 550 final HttpAsyncResponseConsumer responseConsumer, 551 final FutureCallback callback) { 552 return execute(requestProducer, responseConsumer, new BasicHttpContext(), callback); 553 } {code} -- 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