Re: WELCOME to modules-dev@httpd.apache.org

2009-02-11 Thread Eric Covener
On Wed, Feb 11, 2009 at 1:18 PM, dave man...@gmail.com 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: 0x2b45d35e79e8

Re: WELCOME to modules-dev@httpd.apache.org

2009-02-10 Thread dave
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

Re: WELCOME to modules-dev@httpd.apache.org

2009-02-10 Thread Joe Lewis
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, cfg);

Re: WELCOME to modules-dev@httpd.apache.org

2009-02-10 Thread dave
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) {

Re: WELCOME to modules-dev@httpd.apache.org

2009-02-10 Thread dave
On Tue, Feb 10, 2009 at 19:11, Joe Lewis j...@joe-lewis.com 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

Re: WELCOME to modules-dev@httpd.apache.org

2009-02-10 Thread Joe Lewis
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.