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 6B3F4ECF2 for ; Thu, 7 Feb 2013 13:37:15 +0000 (UTC) Received: (qmail 7099 invoked by uid 500); 7 Feb 2013 13:37:14 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 6838 invoked by uid 500); 7 Feb 2013 13:37:14 -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 6807 invoked by uid 99); 7 Feb 2013 13:37:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Feb 2013 13:37:13 +0000 Date: Thu, 7 Feb 2013 13:37:13 +0000 (UTC) From: "Oleg Kalnichevski (JIRA)" To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HTTPCORE-333) ChunkedInputStream does not handle sockets with timeouts - Client 3.1 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-333?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13573483#comment-13573483 ] Oleg Kalnichevski commented on HTTPCORE-333: -------------------------------------------- Does this problem affect 4.x or not? I could commit your patch without any QA and testing if you insist, but there will be no official release of HC 3.x. Oleg > ChunkedInputStream does not handle sockets with timeouts - Client 3.1 > --------------------------------------------------------------------- > > Key: HTTPCORE-333 > URL: https://issues.apache.org/jira/browse/HTTPCORE-333 > Project: HttpComponents HttpCore > Issue Type: Bug > Reporter: Anton Khitrenovich > Priority: Minor > Attachments: HttpClient_829.java, 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. 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