On Wed, Feb 11, 2009 at 1:18 PM, dave wrote:
> acfg and bcfg are the arguments to the merge calback. cfg is the result that
> the merge callback returns
> ...
> merge_server{acfg: 0x2b45d35e79d0bcfg:0x2b45dc2385f0cfg:
> 0x2b45dc26fff0}
> merge_dir{acfg: 0x2b45d35e79e8bcfg:0x2b4
dave wrote:
I tried defining a merge callback for both the server level and the
directory level, but that doesn't seem to change anything.
-dave
man...@gmail.com
I understand - you are using both directory AND server side configs.
directory configs do not get created until a request. A
On Tue, Feb 10, 2009 at 19:11, Joe Lewis wrote:
> With your last post (the creation), it looks like you understand it well.
> Are you only creating one process? For example, run it with a -X parameter
> (to prevent fork()ing) so you can ensure that you aren't working across
> processes? Printi
>
>
> So, how is the s->module_config being set? I hope you are creating it in
> the per-server config create function. Do you have that code for us to look
> at?
>
> Joe
>
I am instantiating it in the per-server callback, ala:
static void *my_create_server_config(apr_pool_t *p, server_rec *s)
dave wrote:
Hi All,
I'm having trouble with the server_rec->module_config variable and perhaps I
am misunderstanding something.
static void get_resource(void *module_config) {
my_config *cfg = (my_config *)ap_get_module_config(module_config,
&my_module);
printf("module_config: %d\n", cf
Hi All,
I'm having trouble with the server_rec->module_config variable and perhaps I
am misunderstanding something.
Using the apache2 C api, I have created a child_init callback (registered
through ap_hook_child_init) that is supposed to set up a per-process
resource when the server is first star