On Thu, Oct 11, 2001 at 08:50:58AM -0700, Doug MacEachern wrote: > On Thu, 11 Oct 2001, Philippe M. Chiasson wrote: > > > Thanks, and might that be slightly more usefull in a macro like : > > ok, i've added one for the moment. but in the future, i hope nobody needs > it. (see below) > > > Good. But I discovered another slight annoyance I can't quite resolve. >ap_hook_create_request > > is used to create 'r' for every request, I guessed, but there doesn't seem to be a >clean way > > to handle destruction/cleaning of that request. So now I am left wondering >when/how to step > > in just before a request obj is de-allocated, to free stuff that wasn't allocated >with apr_pools. > > you can use a cleanup in r->pool.
Now, how do you do that ?
> however, i'm thinking in general there
> should be a cleanup mechanism for the interpreter pool, so cleanups can
> happen when the interpreter is put back into the pool. because at the
> moment, pnotes will break if PerlInterpScope is configured to handler or
> subrequest.
Yep, I figured that one out this week-end, trying to figure out a way to get
pnotes not to leak.
> because the interpreter will have already been put back into
> the pool by the time r->pool cleanups are run in these cases.
Yes, absolutely what the problem is. Wouldn't it be possible for mod_perl to allocate
it's own sub-pool off of r->pool or s->pool ,keep track of it and get rid of it
when the interpreter is about to be put back ? Sounds semi-simple and I can try and
implement it. What do you think ?
>
--
+----------------------------------------------------+
| Philippe M. Chiasson <[EMAIL PROTECTED]> |
+----------------------------------------------------+
| F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 88C3 A5A5 |
+----------------------------------------------------+
gethostent not implemented : Your C library apparently
doesn't implement gethostent(), probably because if it did,
it'd feel morally obligated to return every hostname on the
Internet.
-- perldiag(1)
perl -e '$$=\${gozer};{$_=unpack(P26,pack(L,$$));/^Just Another Perl
Hacker!\n$/&&print||$$++&&redo}'
msg02037/pgp00000.pgp
Description: PGP signature
