Return-Path: Delivered-To: apmail-jakarta-httpcomponents-dev-archive@www.apache.org Received: (qmail 2015 invoked from network); 9 Mar 2007 08:35:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Mar 2007 08:35:46 -0000 Received: (qmail 11858 invoked by uid 500); 9 Mar 2007 08:35:54 -0000 Delivered-To: apmail-jakarta-httpcomponents-dev-archive@jakarta.apache.org Received: (qmail 11584 invoked by uid 500); 9 Mar 2007 08:35:53 -0000 Mailing-List: contact httpcomponents-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list httpcomponents-dev@jakarta.apache.org Received: (qmail 11572 invoked by uid 99); 9 Mar 2007 08:35:53 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2007 00:35:53 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2007 00:35:44 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2807F714045 for ; Fri, 9 Mar 2007 00:35:24 -0800 (PST) Message-ID: <3524595.1173429324161.JavaMail.root@brutus> Date: Fri, 9 Mar 2007 00:35:24 -0800 (PST) From: "Oleg Kalnichevski (JIRA)" To: httpcomponents-dev@jakarta.apache.org Subject: [jira] Resolved: (HTTPCORE-45) Pipelined requests cause HttpException In-Reply-To: <5875150.1171312805936.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/HTTPCORE-45?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Oleg Kalnichevski resolved HTTPCORE-45. --------------------------------------- Resolution: Fixed Hi Steffen, I looked into the possibility of using a queue to keep track of incoming requests and came to realize that request pipelining and support for 'expect: continue' handshake are pretty much mutually exclusive. I think it is more important to have support for the 'expect: continue' handshake than request queuing in Core. This will also help address Roland's concerns about HttpCore scope creep. So, I fixed the problem, as you initially suggested, by disabling read events while processing requests and streaming out responses. I checked in a fix for the problem to the SVN trunk. Please review and let me know what you think Olrh > Pipelined requests cause HttpException > -------------------------------------- > > Key: HTTPCORE-45 > URL: https://issues.apache.org/jira/browse/HTTPCORE-45 > Project: HttpComponents Core > Issue Type: Bug > Components: HttpCore NIO > Reporter: Steffen Pingel > Assigned To: Oleg Kalnichevski > Fix For: 4.0-alpha4 > > Attachments: httpcomponents-nio-pipelining-fix.txt > > > I have a simple server implementation that uses DefaultServerIOEventDispatch and BufferingHttpServiceHandler. Pipelined requests can cause an exception when DefaultNHttpServerConnection receives another request while still processing the response to a previous request: > org.apache.http.HttpException: Response already submitted > at org.apache.http.impl.nio.DefaultNHttpServerConnection.submitResponse(DefaultNHttpServerConnection.java:162) > at org.apache.http.nio.protocol.BufferingHttpServiceHandler.commitResponse(BufferingHttpServiceHandler.java:369) > at org.apache.http.nio.protocol.BufferingHttpServiceHandler.processRequest(BufferingHttpServiceHandler.java:358) > at org.apache.http.nio.protocol.BufferingHttpServiceHandler.requestReceived(BufferingHttpServiceHandler.java:167) > at org.apache.http.impl.nio.DefaultNHttpServerConnection.consumeInput(DefaultNHttpServerConnection.java:97) > at org.apache.http.impl.nio.DefaultServerIOEventDispatch.inputReady(DefaultServerIOEventDispatch.java:77) > [...] -- 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: httpcomponents-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org