Return-Path: Delivered-To: apmail-new-httpd-archive@apache.org Received: (qmail 90739 invoked by uid 500); 10 Jul 2000 21:28:53 -0000 Mailing-List: contact new-httpd-help@apache.org; run by ezmlm Precedence: bulk X-No-Archive: yes Reply-To: new-httpd@apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list new-httpd@apache.org Received: (qmail 90724 invoked from network); 10 Jul 2000 21:28:52 -0000 X-Authentication-Warning: koj.rkbloom.net: rbb owned process doing -bs Date: Mon, 10 Jul 2000 14:29:37 -0700 (PDT) From: rbb@covalent.net X-Sender: rbb@koj.rkbloom.net To: new-httpd@apache.org Subject: Re: filtering patches In-Reply-To: <396A3792.D8AB7895@Golux.Com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 10 Jul 2000, Rodent of Unusual Size wrote: > "Roy T. Fielding" wrote: > > > > Aside from the above coolness for HTTP serving, there is nothing magic > > about pools. They can be used for filter-local storage provided that > > the pool is as persistent as the filter, but they can't be used for > > bucket data. Buckets require their own memory allocation/sharing/ > > freeing. > > Please substantiate so I 'get it..' > > Regardless of whether I do eventually 'get it,' I propose that > each bucket have a pool pointer for a sandbox for the filters, > just as we now provide in just about every other passed-around > structure. If the data can't be kept in the pool, all right > (though that's the part I hope to 'get') -- but each filter > shouldn't have to create/destroy its own working area. I'm confused. With pools, each filter will have associate itself with it's own pool, and thus create and destroy its own working area. With malloc/free the filters have to create/destroy the memory used to pass around the data (done through the bucket API), but the working area can be the pool in the request_rec. I do not believe each bucket needs their own pool, because the bucket_brigade has its own pool. In general, buckets shouldn't be passed around without a bucket_brigade. This is why buckets don't have their own pools. I do mention in the comments that the pool in the bucket brigade is used to limit the brigade's lifetime, although I can't remember right now if I actually registered a cleanup for it. Ryan _______________________________________________________________________________ Ryan Bloom rbb@apache.org 406 29th St. San Francisco, CA 94131 -------------------------------------------------------------------------------