problem with shared memory and directives for httpd

2014-12-04 Thread nik600
Dear all i'm experiencing a problem with shared memory and i'm not able to figure it out. i've got a segment of shared memory in my module config and seen that if set some settings for the module in my configuration this memory isn't available in the request process. i've also attached an

RE: problem with shared memory and directives for httpd

2014-12-04 Thread Eric Johanson
You have no merge function defined for your server-level config structure (kcache_config). I would definitely try implementing that function. Otherwise, when apache goes to combine two levels of the config hierarchy together, the resulting combination is likely to just be an empty version of

Re: problem with shared memory and directives for httpd

2014-12-04 Thread nik600
Hi thanks for your reply. i've tried also with a merging function but i have the same behaviour. Attached the same example with also merge function. Maybe i'm doing something wrong in my merge function? 2014-12-04 16:33 GMT+01:00 Eric Johanson er...@valmarc.com: You have no merge function

RE: problem with shared memory and directives for httpd

2014-12-04 Thread Eric Johanson
Okay but why are you managing the kcache_config structure with both the per-directory AND the server-level functions? You should decide if your kcache_config is server-wide or if it is per-directory, and use only the appropriate functions. -Eric From: nik600 [mailto:nik...@gmail.com] Sent:

Re: problem with shared memory and directives for httpd

2014-12-04 Thread nik600
because i've tried with both or with only one. IE, if i use: module AP_MODULE_DECLARE_DATA kcache_module = { STANDARD20_MODULE_STUFF,NULL , NULL, create_server_conf, merge_conf, kcache_directives, register_hooks }; i have the same behaviour 2014-12-04 17:32 GMT+01:00 Eric Johanson

Re: problem with shared memory and directives for httpd

2014-12-04 Thread Yann Ylavic
Hi, to not depend on where you declare : IfModule mod_kcache.c KcacheEnabled On /IfModule you need to iterate over the server_rec list in post_config and child_init hooks. Please see attached modifications (where only a server_config is used). Regards, Yann. On Thu, Dec 4, 2014 at

Re: problem with shared memory and directives for httpd

2014-12-04 Thread Yann Ylavic
On Thu, Dec 4, 2014 at 10:52 PM, Yann Ylavic ylavic@gmail.com wrote: Please see attached modifications (where only a server_config is used). Note that I did not even test compile the chages, just a POC...

Re: problem with shared memory and directives for httpd

2014-12-04 Thread nik600
yes, now it works, thanks again! 2014-12-04 23:49 GMT+01:00 nik600 nik...@gmail.com: Thanks a lot! i've understand the logic... i'll try and let you know! 2014-12-04 23:43 GMT+01:00 Yann Ylavic ylavic@gmail.com: On Thu, Dec 4, 2014 at 10:52 PM, Yann Ylavic ylavic@gmail.com wrote: