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 A06DADEA6 for ; Wed, 12 Sep 2012 21:55:08 +0000 (UTC) Received: (qmail 32113 invoked by uid 500); 12 Sep 2012 21:55:08 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 32078 invoked by uid 500); 12 Sep 2012 21:55:08 -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 32066 invoked by uid 99); 12 Sep 2012 21:55:08 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Sep 2012 21:55:08 +0000 Date: Thu, 13 Sep 2012 08:55:08 +1100 (NCT) From: "Oleg Kalnichevski (JIRA)" To: dev@hc.apache.org Message-ID: <2028036423.71838.1347486908390.JavaMail.jiratomcat@arcas> In-Reply-To: <1849617577.66687.1347407767753.JavaMail.jiratomcat@arcas> Subject: [jira] [Resolved] (HTTPCORE-309) [Regression] HttpAsyncRequestExecutor incorrectly handles 204, 205, 304 responses (content body enclosed) 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/HTTPCORE-309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Oleg Kalnichevski resolved HTTPCORE-309. ---------------------------------------- Resolution: Fixed Fix Version/s: 4.2.2 I applied a fix for the defect to both SVN trunk and 4.2.x branch. With the fix applied the test attached to the ticket pass for me. Please verify by re-testing your code against the latest SVN snapshot off 4.2.x branch. Oleg > [Regression] HttpAsyncRequestExecutor incorrectly handles 204, 205, 304 responses (content body enclosed) > --------------------------------------------------------------------------------------------------------- > > Key: HTTPCORE-309 > URL: https://issues.apache.org/jira/browse/HTTPCORE-309 > Project: HttpComponents HttpCore > Issue Type: Bug > Affects Versions: 4.2.1 > Reporter: Mark Greene > Fix For: 4.2.2 > > Attachments: asyncbug.tar > > > I've noticed this specifically with 204 status codes (No Content). I've stepped through this and it appears the main cause is that the 'endOfStream' variable inside SimpleInputBuffer doesn't appear to be set to true. > Here's a stack trace of a thread that is stuck in an infinite loop: > "I/O dispatcher 7" daemon prio=10 tid=0x08ab8400 nid=0x2dcd runnable [0xf2bd3000] > java.lang.Thread.State: RUNNABLE > at java.nio.HeapByteBuffer.get(HeapByteBuffer.java:129) > at org.apache.http.nio.util.SimpleInputBuffer.read(SimpleInputBuffer.java:100) > at org.apache.http.nio.entity.ContentInputStream.close(ContentInputStream.java:86) > at org.apache.http.util.EntityUtils.consume(EntityUtils.java:85) -- 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