perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Schaefer <>
Subject Re: [mp2] pool object dependant methods insanity
Date Fri, 24 Dec 2004 18:50:17 GMT
Stas Bekman <> writes:

> Joe Schaefer wrote:
>>         $bucket->setaside($pool) means

>> the apr_bucket_t attached to this APR::Bucket object needs to
>> survive as long as the underlying apr_pool_t. However, if
>> that apr_pool_t is owned by some APR::Pool object, that object
>> should [*] survive at least as long as the APR::Bucket object does.


> So what do we hang the pool on? $bucket?


> That doesn't sound right, since the perl object may go away (thus
> destroying the pool if noone else references it), but the underlying
> bucket can't see that. so it's probably not enough, no?

It is enough, if you're sticking to the text above.
The pool is going to die at some point; the application 
(not mp2) has a bug if the bucket is used beyond that point.

Joe Schaefer

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message