Apache: Create server config only once

2013-05-25 Thread Sindhi Sindhi
Hi, I see that the create_server_config callback is called twice for every Apache server startup. I want to do a lot of initialization in this callback and allocations in this function are meant to be long lived. And these buffers are very huge, so I want to ensure these initializations are done o

Re: Apache: Create server config only once

2013-05-25 Thread Sindhi Sindhi
I tried to make the class MyFilterInit a Singleton class, but when CreateServerConfig is called the second time, MyFilterInit constructor is called is called second time, and here I see that the static instance of MyFilterInit in the second call is set to NULL, which should have ideally been a addr

Re: Apache: Create server config only once

2013-05-25 Thread Sorin Manolache
On 2013-05-25 15:22, Sindhi Sindhi wrote: Hi, I see that the create_server_config callback is called twice for every Apache server startup. I want to do a lot of initialization in this callback and allocations in this function are meant to be long lived. And these buffers are very huge, so I wan

Re: Apache: Create server config only once

2013-05-25 Thread Sindhi Sindhi
Sorin! Thankyou so much, really appreciate your responses they are giving me a very good insight. On Sun, May 26, 2013 at 12:59 AM, Sorin Manolache wrote: > On 2013-05-25 15:22, Sindhi Sindhi wrote: > >> Hi, >> >> I see that the create_server_config callback is called twice for every >> Apache s