Return-Path: Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 38270 invoked by uid 500); 24 Jun 2002 19:00:34 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 38229 invoked from network); 24 Jun 2002 19:00:33 -0000 Sender: gregames Message-ID: <3D176BF5.5377991C@apache.org> Date: Mon, 24 Jun 2002 14:59:01 -0400 From: Greg Ames X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.19-10mdk i686) MIME-Version: 1.0 To: dev@httpd.apache.org Subject: Re: core_output_filter buffering for keepalives? Re: Apache 2.0Numbers References: <1024902128.1576.82.camel@localhost> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Brian Pane wrote: > The more I think about it, though, the more I like the idea of just > writing the brigade out to the client immediately when we see EOS in > core_ouput_filter(), even if c->keepalive is true. If we do this, > the only bad thing that will happen is that if a client opens a > keepalive connection and sends a stream of requests for 1-byte files, > each file will be sent back in a separate small packet. But that's > still an improvement over the non-keepalive case (and equivalent to > the packetization that we get from 1.3). I wonder if we could also tie the uncork on Linux to the non-keepalive case without making it too messy? In other words, if we are doing a whole bunch of keepalive requests, only uncork after the last one to minimize the number of packets. Maybe the uncork could be deferred until just before the socket shutdown() or close(). Greg