How can shared modules parse the configuration tree(ap_conftree)???

2005-06-27 Thread luca regini
been digging very deeply in Apache source code and i am pretty clueless now. Thanks in advance for your attention. Luca Regini

My Input Filter doesn't get called

2005-06-23 Thread luca regini
I add an input filter with an ap_add_input_filter from an ap_hook_header_parser hook. My filter doesn't get called, i guess probably because we are too far in the request processing cycle. Sadly this filter needs perdirectoryconfig information that is not available within previous hooks. So shall

Re: Accessing to per Directory configuration from an input filter: HOW?

2005-06-23 Thread luca regini
in advance for your attention. Luca On 6/22/05, Nick Kew [EMAIL PROTECTED] wrote: luca regini wrote: I need to write an input filter that is able to change the value of some cookies. However the name of the cookie to be changed is a per- directory value. So i have an input filter whose behavior

Accessing to per Directory configuration from an input filter: HOW?

2005-06-22 Thread luca regini
I need to write an input filter that is able to change the value of some cookies. However the name of the cookie to be changed is a per- directory value. So i have an input filter whose behavior depends programmatically from per-directory configuration. How should i gain information about per -dir

Re: Accessing to per Directory configuration from an input filter: HOW?

2005-06-22 Thread luca regini
I am not able to find any example of use of this hook to alter the value of a cookie. For my ( limited and erroneous) understanding an hook cannot alter requestsnor produce content. Thisare tasks made for filters. Luca On 6/22/05, Nick Kew [EMAIL PROTECTED] wrote: luca regini wrote: I need

Re: Accessing to per Directory configuration from an input filter: HOW?

2005-06-22 Thread luca regini
I add to my previous mail that thectx parameter in the ap_add_output_filter function can be used to pass an arbitrary structure to the filter. So this should be the right place to pass information to the filter. Luca On 6/22/05, Nick Kew [EMAIL PROTECTED] wrote: luca regini wrote: I need

BUG in apache?????

2005-06-17 Thread luca regini
The problem shows itself with the following simple module.When the hook is of type ap_hook_post_read_request per dir configuration is not instantiated correctly and debug has always value -1. With other kinds of hooks the debug variable is correctly is instantiated with the various values found in

apr_shm_create strange behaviour

2005-03-10 Thread luca regini
When i run an apr_shm_create(filename) even for the first time i always get an APR_EEXIST return value, even if i am sure that no previous filename exists. I checked that apr_shm_create(filename) manages to create filename on the filesystem but any subsequent call to apr_shm_attach fails to

Re: Mod_MEM_cache doesn't use Pools to allocate cache objects???

2005-03-09 Thread luca regini
the source code to the group if there is some interest in it. If i manage to build a generic solution for the web service caching module i will release this source code also. Luca On Tue, 08 Mar 2005 16:08:58 +0100, Matthieu Estrade [EMAIL PROTECTED] wrote: luca regini wrote: Taking a look

Caching a value for the lifetime of a module: CLUELESS

2005-03-08 Thread luca regini
My understanding about per server conf is that any structure allocated in the server config handler should have a lifetime that is the same as the one of the module. So the server config structure should be an ideal place for caching values. Anyway in the following simple module the dbg counter is

Mod_MEM_cache doesn't use Pools to allocate cache objects???

2005-03-08 Thread luca regini
Taking a look at mod_mem_cache source code i have seen that it doesn't use pools to allocate cache objects but i does so by means of reference counting and simple calloc/free calls. I have also seen that this module requires a Threaded apr to work. I am wondering the reasons of this design

Re: Caching a value for the lifetime of a module: CLUELESS

2005-03-08 Thread luca regini
[EMAIL PROTECTED] wrote: On Tue, 8 Mar 2005, luca regini wrote: My understanding about per server conf is that any structure allocated in the server config handler should have a lifetime that is the same as the one of the module. So the server config structure should be an ideal place

External Hooks discussion

2005-03-01 Thread luca regini
I can't find anywhere an explanation about external hooks and the use of the APR_DECLARE_EXTERNAL_HOOK macro. Is there anyone that has some experience with them and can provide clarifications?? Thanks in advance. Luca