Received: by taz.hyperreal.com (8.8.4/V2.0) id GAA10354; Tue, 28 Jan 1997 06:57:35 -0800 (PST) Received: from plato.alameda-coe.k12.ca.us by taz.hyperreal.com (8.8.4/V2.0) with SMTP id GAA10345; Tue, 28 Jan 1997 06:57:30 -0800 (PST) Received: from pappilloma.wwebsvs.com by plato.alameda-coe.k12.ca.us with smtp (Smail3.1.29.1 #5) id m0vpErJ-000OZMC; Tue, 28 Jan 97 06:50 PST Received: from ace.nueva.pvt.k12.ca.us by pappilloma.wwebsvs.com (SMI-8.6/SMI-SVR4) id FAA07672; Tue, 28 Jan 1997 05:55:20 -0800 Received: from localhost by ace.nueva.pvt.k12.ca.us with SMTP (1.37.109.20/15.5+ECS 3.3+HPL1.1) id AA044753429; Tue, 28 Jan 1997 06:57:09 -0800 Date: Tue, 28 Jan 1997 06:57:08 -0800 (PST) From: Alexei Kosut To: new-httpd@hyperreal.com Subject: Re: [PATCH] must flush for CRLFs after POSTs In-Reply-To: <9701281215.aa14594@gonzo.ben.algroup.co.uk> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@hyperreal.com On Tue, 28 Jan 1997, Ben Laurie wrote: > > On the one time in a thousand that that happens, then the read buffer will be > > flushed anyway because it will look as though there are no more requests > > to come. > > You've lost me. Surely we wait for the keepalive timeout period for a new > request? No, David's right. The issue we're talking about here is when to flush. Currently, we don't flush directly after the request if there's data to be read. If the CRLF isn't there to be seen at the end of a request yet, the server will flush the last bits out, and everyone will be happy. The CRLF will then be seen as whitespace at the beginning of the next request (which Apache gracefully supports), rather than at the end of the old one. But I'm not sure I like that solution. For one thing, mod_cgi is definitely the wrong place to put it, since POSTs can come anywhere. It would have to be done as part of the http_main loop that controls keepalives. And there's little difference between putting it there and in read_request(), as Dean as suggested. -- ________________________________________________________________________ Alexei Kosut The Apache HTTP Server URL: http://www.nueva.pvt.k12.ca.us/~akosut/ http://www.apache.org/