httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@covalent.net
Subject RE: Problem with content length filter
Date Sun, 12 Nov 2000 17:47:51 GMT

> > Do we need to start refcounting apr_open / apr_close?
> 
> I think it's more likely that we need to start refcounting file buckets and
> implement file_destroy() to take care of closing the file when all references are
> gone.  Then take the responsibility for closing the file away from the default
> handler.  Does that make sense?  I can do this today if somebody will tell me first
> that they +1 it as the right approach.

It's overkill.  The simple fact that the bucket was allocated out of a
pool will make the file go away, and the bucket_destroy function will make
the bucket itself go away.

Ryan

_______________________________________________________________________________
Ryan Bloom                        	rbb@apache.org
406 29th St.
San Francisco, CA 94131
-------------------------------------------------------------------------------


Mime
View raw message