Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 88038 invoked from network); 28 Sep 2007 05:16:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Sep 2007 05:16:06 -0000 Received: (qmail 55819 invoked by uid 500); 28 Sep 2007 05:15:53 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 55702 invoked by uid 500); 28 Sep 2007 05:15:53 -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: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 55680 invoked by uid 99); 28 Sep 2007 05:15:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Sep 2007 22:15:53 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [64.202.165.12] (HELO smtpout08.prod.mesa1.secureserver.net) (64.202.165.12) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 28 Sep 2007 05:15:53 +0000 Received: (qmail 5427 invoked from network); 28 Sep 2007 05:15:31 -0000 Received: from unknown (24.15.193.17) by smtpout08-04.prod.mesa1.secureserver.net (64.202.165.12) with ESMTP; 28 Sep 2007 05:15:30 -0000 Message-ID: <46FC8DF2.3000905@rowe-clan.net> Date: Fri, 28 Sep 2007 00:15:30 -0500 From: "William A. Rowe, Jr." User-Agent: Thunderbird 1.5.0.12 (X11/20070719) MIME-Version: 1.0 To: dev@httpd.apache.org CC: cvs@httpd.apache.org Subject: Re: svn commit: r580220 - /httpd/httpd/branches/2.0.x/modules/experimental/mod_case_filter.c References: <20070928050157.907AF1A983A@eris.apache.org> In-Reply-To: <20070928050157.907AF1A983A@eris.apache.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Sorry to jump over STATUS on this experimental change; I was seeing growing loop as I attempted to upcase a proxied back end response of LICENSE.txt, which repeated the opening part of the document over and over as it grew to the full response (from 39kb up to some 105kb). Does anyone see an issue with this backport (and does anyone want to put in the effort to do it well ;-) Bill wrowe@apache.org wrote: > Author: wrowe > Date: Thu Sep 27 22:01:56 2007 > New Revision: 580220 > > URL: http://svn.apache.org/viewvc?rev=580220&view=rev > Log: > Change to Experimental module to avoid an ever-expanding brigade, > absorb the buckets we've consumed. Better ways to do this lurk here. > > Backport: r580206 > > Modified: > httpd/httpd/branches/2.0.x/modules/experimental/mod_case_filter.c > > Modified: httpd/httpd/branches/2.0.x/modules/experimental/mod_case_filter.c > URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.0.x/modules/experimental/mod_case_filter.c?rev=580220&r1=580219&r2=580220&view=diff > ============================================================================== > --- httpd/httpd/branches/2.0.x/modules/experimental/mod_case_filter.c (original) > +++ httpd/httpd/branches/2.0.x/modules/experimental/mod_case_filter.c Thu Sep 27 22:01:56 2007 > @@ -89,7 +89,16 @@ > APR_BRIGADE_INSERT_TAIL(pbbOut,pbktOut); > } > > - /* XXX: is there any advantage to passing a brigade for each bucket? */ > + /* Q: is there any advantage to passing a brigade for each bucket? > + * A: obviously, it can cut down server resource consumption, if this > + * experimental module was fed a file of 4MB, it would be using 8MB for > + * the 'read' buckets and the 'write' buckets. > + * > + * Note it is more efficient to consume (destroy) each bucket as it's > + * processed above than to do a single cleanup down here. In any case, > + * don't let our caller pass the same buckets to us, twice; > + */ > + ap_briade_cleanup(pbbIn); > return ap_pass_brigade(f->next,pbbOut); > } > > > > >