Return-Path: Delivered-To: apmail-hc-dev-archive@www.apache.org Received: (qmail 31434 invoked from network); 23 May 2009 17:40:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 May 2009 17:40:02 -0000 Received: (qmail 37366 invoked by uid 500); 23 May 2009 17:40:14 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 37297 invoked by uid 500); 23 May 2009 17:40: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 37275 invoked by uid 99); 23 May 2009 17:40:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 May 2009 17:40:14 +0000 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; Sat, 23 May 2009 17:40:05 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 89913234C004 for ; Sat, 23 May 2009 10:39:45 -0700 (PDT) Message-ID: <1686206951.1243100385550.JavaMail.jira@brutus> Date: Sat, 23 May 2009 10:39:45 -0700 (PDT) From: "Oleg Kalnichevski (JIRA)" To: dev@hc.apache.org Subject: [jira] Commented: (HTTPCORE-197) Chunked content fails to be ever decoded in case of http.socket.buffer-size != 2048 and long chunked content In-Reply-To: <625328579.1242779805630.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HTTPCORE-197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12712445#action_12712445 ] Oleg Kalnichevski commented on HTTPCORE-197: -------------------------------------------- I am planning to have 4.0.1 released sometime late June. Would that be okay with you? Would you like it released sooner? Oleg > Chunked content fails to be ever decoded in case of http.socket.buffer-size != 2048 and long chunked content > ------------------------------------------------------------------------------------------------------------ > > Key: HTTPCORE-197 > URL: https://issues.apache.org/jira/browse/HTTPCORE-197 > Project: HttpComponents HttpCore > Issue Type: Bug > Components: HttpCore NIO > Affects Versions: 4.0 > Reporter: Denis Rogov > Priority: Critical > Fix For: 4.1 > > Attachments: truncatedChunkDecoderFix.patch > > > To reproduce just change in org.apache.http.examples.nio.NHttpClient one of the connet entries to > reqs[0] = ioReactor.connect( > new InetSocketAddress("www.stuftpizza.com", 80), > null, > new HttpHost("www.stuftpizza.com"), > new MySessionRequestCallback(requestCount)); > You will receive I/O error: Truncated chunk ( expected size: 457; actual size: 216). Though content the site is returning now is RFC-compliant. > This site responses now with 6 chunks with lengths(hex) 319, 40f, 1c9, 45, 198, 31. SOCKET_BUFFER_SIZE is configured in this example to 8192. org.apache.http.nio.entity.BufferingNHttpEntity#BUFFER_SIZE is 2048 now and this causes that sometimes destination buffer capacity is less in runtime than the chunk length in ChunkDecoder. Proposed patch is attached for this particular case. -- 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