Re: Memory Pool

2010-10-12 Thread Martin Townsend
On 11/10/2010 20:48, Nick Kew wrote: On Mon, 11 Oct 2010 15:14:02 +0100 Martin Townsendmartin.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

Re: Memory Pool

2010-10-12 Thread Ben Noordhuis
Martin, if you are working in a constrained environment, then you are probably better off using something like libmicrohttpd[1] or libevent's evhttp interface[2]. Apache has a rather heavy resource footprint. [1] http://www.gnu.org/software/libmicrohttpd/ [2]

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