Return-Path: Delivered-To: apmail-hc-dev-archive@www.apache.org Received: (qmail 54292 invoked from network); 25 Feb 2008 21:59:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Feb 2008 21:59:43 -0000 Received: (qmail 54189 invoked by uid 500); 25 Feb 2008 21:59:37 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 54149 invoked by uid 500); 25 Feb 2008 21:59:37 -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 54140 invoked by uid 99); 25 Feb 2008 21:59:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Feb 2008 13:59:37 -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; Mon, 25 Feb 2008 21:58:58 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3C572234C010 for ; Mon, 25 Feb 2008 13:58:51 -0800 (PST) Message-ID: <1713646528.1203976731245.JavaMail.jira@brutus> Date: Mon, 25 Feb 2008 13:58:51 -0800 (PST) From: "Oleg Kalnichevski (JIRA)" To: dev@hc.apache.org Subject: [jira] Commented: (HTTPCORE-92) NIO ChunkEncoder does not flush the session output buffer 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/HTTPCORE-92?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12572263#action_12572263 ] Oleg Kalnichevski commented on HTTPCORE-92: ------------------------------------------- Hi Andrea Pretty close. There is still a way to make the code a little more efficient. There is no need to slice the buffer, just toggle the limit directly on the source. Some test cases would also be lovely ;-) Oleg > NIO ChunkEncoder does not flush the session output buffer > --------------------------------------------------------- > > Key: HTTPCORE-92 > URL: https://issues.apache.org/jira/browse/HTTPCORE-92 > Project: HttpComponents HttpCore > Issue Type: Improvement > Components: HttpCore NIO > Reporter: Oleg Kalnichevski > Fix For: 4.0-beta2 > > Attachments: fix2_92.patch, possiblefix_92.patch, write_reworked.txt > > > Present implementation of the NIO ChunkEncoder is over-simplistic. It always expands the session output buffer to store more content instead of trying to free up space by flushing the buffered content. -- 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