Memory Pool

2010-10-11 Thread Martin Townsend
Hi, I have created a pool from the child pool for storing warning messages that can live across requests, the final request will insert the warnings into the response. How do I ensure that this pool is cleared at the end of the final request? Cheers, Martin. -- Martin Townsend

Re: Memory Pool

2010-10-11 Thread Ben Noordhuis
On Mon, Oct 11, 2010 at 16:14, Martin Townsend martin.towns...@power-oasis.com wrote: I have created a pool from the child pool for storing warning messages that can live across requests, the final request will insert the warnings into the response.  How do I ensure that this pool is cleared at

Re: Memory Pool

2010-10-11 Thread Martin Townsend
On 11/10/2010 15:36, Ben Noordhuis wrote: On Mon, Oct 11, 2010 at 16:14, Martin Townsend martin.towns...@power-oasis.com wrote: I have created a pool from the child pool for storing warning messages that can live across requests, the final request will insert the warnings into the response.

Re: Memory Pool

2010-10-11 Thread Ben Noordhuis
On Mon, Oct 11, 2010 at 16:40, Martin Townsend martin.towns...@power-oasis.com wrote: use, or should I set a flag and then use a hook like fix-ups that will check this flag and then call  apr_pool_clear()? This. You can use a request note for a flag.

Re: Memory Pool

2010-10-11 Thread Nick Kew
On Mon, 11 Oct 2010 15:14:02 +0100 Martin Townsend martin.towns...@power-oasis.com wrote: Hi, I have created a pool from the child pool for storing warning messages that can live across requests, the final request will insert the warnings into the response. How do I ensure that this