httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Beck <>
Subject Re: Tear down of module on server stop
Date Fri, 07 Jun 2013 14:19:44 GMT
I'm looking through and example I found
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?


On Thu, Jun 6, 2013 at 4:27 PM, Sean Beck <> 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 <> 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

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