Return-Path: Delivered-To: apmail-hc-dev-archive@www.apache.org Received: (qmail 14364 invoked from network); 25 Feb 2009 09:17:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Feb 2009 09:17:26 -0000 Received: (qmail 41389 invoked by uid 500); 25 Feb 2009 09:17:25 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 41365 invoked by uid 500); 25 Feb 2009 09:17:25 -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 41354 invoked by uid 99); 25 Feb 2009 09:17:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Feb 2009 01:17:25 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Feb 2009 09:17:23 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id DE6EE234C48D for ; Wed, 25 Feb 2009 01:17:01 -0800 (PST) Message-ID: <1685035358.1235553421909.JavaMail.jira@brutus> Date: Wed, 25 Feb 2009 01:17:01 -0800 (PST) From: "Adam Bryzak (JIRA)" To: dev@hc.apache.org Subject: [jira] Updated: (HTTPCLIENT-829) ChunkedInputStream does not handle sockets with timeouts In-Reply-To: <623697943.1235553182304.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HTTPCLIENT-829?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Adam Bryzak updated HTTPCLIENT-829: ----------------------------------- Attachment: HTTPCLIENT-829.patch Created a patch which stores some local variables in fields instead. > ChunkedInputStream does not handle sockets with timeouts > -------------------------------------------------------- > > Key: HTTPCLIENT-829 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-829 > Project: HttpComponents HttpClient > Issue Type: Bug > Affects Versions: 3.1 Final > Reporter: Adam Bryzak > Attachments: HTTPCLIENT-829.patch > > > ChunkedInputStream does not handle socket timeouts when reading data. If a socket timeout is received after finishing reading a chunk (including it's CRLF combination) and before reading the next chunk's length, the next call to read will attempt to re-read the CRLF, causing an IOException with the message "CRLF expected at end of chunk" to be thrown. I have only tested this with 3.0 but it doesn't appear to be fixed in 3.1 or any 4.0 from looking at the code. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org