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 5E723C0F0 for ; Fri, 7 Mar 2014 09:39:54 +0000 (UTC) Received: (qmail 78375 invoked by uid 500); 7 Mar 2014 09:39:53 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 78046 invoked by uid 500); 7 Mar 2014 09:39:47 -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 77487 invoked by uid 99); 7 Mar 2014 09:39:45 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Mar 2014 09:39:45 +0000 Date: Fri, 7 Mar 2014 09:39:45 +0000 (UTC) From: "Oleg Kalnichevski (JIRA)" To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (HTTPASYNC-70) Shuting down the underlying channel [ioctrl.shutdown()] doesn't mark contentdecoder as completed 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-70?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Oleg Kalnichevski resolved HTTPASYNC-70. ---------------------------------------- Resolution: Fixed Fix Version/s: 4.0.2 This is a duplicate of HTTPASYNC-69. A full resolution of this problem depends on a fix to HttpCore currently available in snapshots only (to be included in the next GA release) For the time being instead of calling IOCtrl#shutdown simply throw an I/O or a runtime exception. Oleg > Shuting down the underlying channel [ioctrl.shutdown()] doesn't mark contentdecoder as completed > ------------------------------------------------------------------------------------------------ > > Key: HTTPASYNC-70 > URL: https://issues.apache.org/jira/browse/HTTPASYNC-70 > Project: HttpComponents HttpAsyncClient > Issue Type: Bug > Affects Versions: 4.0.1 > Reporter: clajder > Labels: async, httpasynconsumer > Fix For: 4.0.2 > > > If in AsyncByteConsumer close underlying channel > protected void onByteReceived(ByteBuffer buf, IOControl ioctrl) throws IOException { > if( ) > { > ioctrl.shutdown(); > } > } > later in HttpAsyncRequestExecutor.inputReady(...) there is just one check agains content decoder to verify if consuming completed > if (decoder.isCompleted()) { > processResponse(conn, state, handler); > } > so the decoder goes into indefinite waiting. > Seems like setting decoder.completed into true solves problem. > Thoughts? -- This message was sent by Atlassian JIRA (v6.2#6252) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org