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 Thu, 06 Jun 2013 22:13:04 GMT
So in the post_config hook I set up the connections then register a clean
up function to terminate the connections?


On Thu, Jun 6, 2013 at 4:11 PM, Joe Lewis <joe@joe-lewis.com> wrote:

> On 06/06/2013 03:27 PM, Sean Beck wrote:
>
>> Would I register the pool clean up function in the module struct?
>>
>>
>> On Thu, Jun 6, 2013 at 3:16 PM, Joe Lewis <joe@joe-lewis.com> wrote:
>>
>>  On 06/06/2013 03:14 PM, Sean Beck wrote:
>>>
>>>  Where does the tear down happen when httpd is stopped? I have some code
>>>> for
>>>> sending messages to ActiveMQ in my module and I would like to only make
>>>> a
>>>> connection on startup rather than every time someone connects, but then
>>>> I
>>>> need to destroy the connection when the server stops.
>>>>
>>>> Also, register_hooks is called when the server starts, correct? I am
>>>> thinking I would put the code for connecting to ActiveMQ in there.
>>>>
>>>> Thanks!
>>>>
>>>>
>>>>  Register a pool clean up function with the pool for the server record.
>>>   That should be called when the pool is removed.
>>>
>>> Joe
>>>
>>>
> Try doing this in the post_config hook, which is probably where you set
> the connections up.
>
> Joe
>

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