Re: Issue in using php5_module module.

2013-06-06 Thread Sindhi Sindhi
Thankyou Joe, I'll definitely check the the filter code. On Tue, May 28, 2013 at 8:26 PM, Joe Lewis wrote: > On 05/28/2013 08:38 AM, Sindhi Sindhi wrote: > >> [SNIP] >> >> >> With these changes, when I start httpd.exe and try to launch a simple php >> file shown above, from the browser, the firs

Tear down of module on server stop

2013-06-06 Thread Sean Beck
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

Re: Tear down of module on server stop

2013-06-06 Thread Joe Lewis
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 w

Re: Tear down of module on server stop

2013-06-06 Thread Sean Beck
Would I register the pool clean up function in the module struct? On Thu, Jun 6, 2013 at 3:16 PM, Joe Lewis 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 wo

Re: Tear down of module on server stop

2013-06-06 Thread Joe Lewis
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 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

Re: Tear down of module on server stop

2013-06-06 Thread Sean Beck
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 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,

Re: Tear down of module on server stop

2013-06-06 Thread Joe Lewis
On 06/06/2013 04:13 PM, Sean Beck wrote: So in the post_config hook I set up the connections then register a clean up function to terminate the connections? Yes. It's the one place that, if you are calling apr_palloc/etc, you have the direct pool that will be called when things do get cleane

Re: Tear down of module on server stop

2013-06-06 Thread Sean Beck
I am unable to find in the httpd headers anything about ap_hook_post_config but I see it in examples online. Where can I look so that I understand what each of the parameters are? Also, thank you for helping me On Thu, Jun 6, 2013 at 4:16 PM, Joe Lewis wrote: > > On 06/06/2013 04:13 PM, Sean B