Return-Path: Delivered-To: apmail-jakarta-httpcomponents-dev-archive@www.apache.org Received: (qmail 23507 invoked from network); 19 Mar 2007 19:43:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Mar 2007 19:43:54 -0000 Received: (qmail 89824 invoked by uid 500); 19 Mar 2007 19:44:01 -0000 Delivered-To: apmail-jakarta-httpcomponents-dev-archive@jakarta.apache.org Received: (qmail 89800 invoked by uid 500); 19 Mar 2007 19:44:01 -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 89791 invoked by uid 99); 19 Mar 2007 19:44:01 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Mar 2007 12:44:01 -0700 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; Mon, 19 Mar 2007 12:43:52 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 81731714071 for ; Mon, 19 Mar 2007 12:43:32 -0700 (PDT) Message-ID: <12318884.1174333412525.JavaMail.jira@brutus> Date: Mon, 19 Mar 2007 12:43:32 -0700 (PDT) From: "Steffen Pingel (JIRA)" To: httpcomponents-dev@jakarta.apache.org Subject: [jira] Reopened: (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 ] Steffen Pingel reopened HTTPCORE-45: ------------------------------------ While running tests I found a case where pipelined requests are not being handled: 1. Send two pipelined requests that are read into DefaultNHttpServerConnection.inbuf 2. Suspend input and process first request 3. Request input Since the second request has already been read into a buffer, consumeInput() is never invoked again and the request is not processed. > 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