httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Beck <seanmckayb...@gmail.com>
Subject Re: Tear down of module on server stop
Date Fri, 07 Jun 2013 15:23:34 GMT
Should I give it ptemp as the pool? Or should I create a new one in
post_config()?


On Fri, Jun 7, 2013 at 9:14 AM, Joe Lewis <joe@joe-lewis.com> wrote:

> On 06/07/2013 09:09 AM, Sean Beck wrote:
>
>> OK good to know.
>>
>> Would I use apr_pool_cleanup_register in register hooks?
>>
>
> I'd suggest setting up your ActiveMQ connection in post_config, and then
> calling apr_pool_cleanup_register() when you set it up.  That way, your
> cleanup function will be called when the pool associated with your ActiveMQ
> data is going away.
>
> You can do that all in a handler function, too, but the lifetime of the
> ActiveMQ connection will be a lot shorter.
>
> Joe
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message