I'm looking through and example I found here<http://ctemplate.sourceforge.net/example/mod_example/mod_tplexample.c.html>and it says this about the method used by post_config(): This routine is called to perform any module-specific fixing of header fields, et cetera. It is invoked just before any content-handler. That makes it seem like this is called every time a connection is made. That isn't what I want. I want to do set up only once for as long as the server is running. Would pre_config() be more suitable for that?
Thanks On Thu, Jun 6, 2013 at 4:27 PM, Sean Beck <seanmckayb...@gmail.com> wrote: > 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 <j...@joe-lewis.com> wrote: > >> >> 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 cleaned up for >> what is in the pool, and immediately before the memory is freed up on a >> graceful exit. >> >> Joe >> > >