httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Bloom <...@covalent.net>
Subject Re: mod_asis; apr_bucket_file_create->destroy->poolcleanup->fileclose
Date Sat, 13 Oct 2001 01:46:46 GMT
On Friday 12 October 2001 05:23 pm, Dirk-Willem van Gulik wrote:
> On Fri, 12 Oct 2001, Ryan Bloom wrote:
> > The model is REALLY simple.  apr_file_t's are created by apr_file_open,
> > at that time, a cleanup is registered on the pool that was passed into
> > the file_open function.  apr_bucket_file_create just creates a bucket and
> > puts the file into it.  When the bucket is destroyed, the bucket is
> > freed() and we check the refcount to determine if we should call
> > apr_file_close.
>
> Hmm - I see it going to file_free(); but then not going to
> apr_file_close(). but I get the gist now - digging deeper.

According to Cliff's message, it won't, because that is done through the
pool_cleanup that was registered when the file was opened.

Ryan

______________________________________________________________
Ryan Bloom				rbb@apache.org
Covalent Technologies			rbb@covalent.net
--------------------------------------------------------------

Mime
View raw message