apr_global_mutex_lock() failing with permission denied

2009-03-21 Thread Elison Smith
I am using shared memory to share some data between my module instances in Apache child processes, and apr_global_mutex_t to achieve mutually-exclusive reads and writes. In a post_config_hook, I create the mutex using apr_global_mutex_create() and then reopen it inside each child process by

Input filter to process POST variables (e.g. mod_form)

2009-03-21 Thread Erik Westland
I am writing an output filter that needs to record request (headers and POST/GET vars) and response data (status and content-length). I was planning to write an input filter to capture/relay the POST/GET data (via r-notes) to an output filter for processing. It seems that mod_form (see:

mod_lua check for lua compilation error

2009-03-21 Thread Bertrand Mansion
In order to be able to detect if a lua file fails to compile and get an informative error message like : Error! /web/localhost/htdocs/info.lua:174: '=' expected near '+' instead of : Error! attempt to call a nil value I suggest you move the load/pcall function from

http_in filter question

2009-03-21 Thread Torsten Foertsch
Hi, the http_in filter (ap_http_filter) uses an eos_sent flag in its context. This flag is set each time an eos bucket is sent except for one case: /* If we have no more bytes remaining on a C-L request, * save the callter a roundtrip to discover EOS. */ if (ctx-state ==

Re: http_in filter question

2009-03-21 Thread Ruediger Pluem
On 03/21/2009 04:20 PM, Torsten Foertsch wrote: Hi, the http_in filter (ap_http_filter) uses an eos_sent flag in its context. This flag is set each time an eos bucket is sent except for one case: /* If we have no more bytes remaining on a C-L request, * save the callter a

Apache 2.2 architecture

2009-03-21 Thread h iroshan
Hi All, I am interesting to study the source code of Apache HTTP 2.2 . Can I find any detailed technical documentation or Architecture of Apache 2.2. Thank you and Best Regards, H. Iroshan

Re: Apache 2.2 architecture

2009-03-21 Thread SAMEER KUMAR
Hi, Well apache website offers a complete documentation of all the functions... Best way is you can sit with a formatted print of all the modules... If some one can find a better and more formatted way to understand and interospect the apache code kindly let me know. I wanna understand the APR

Re: Apache 2.2 architecture

2009-03-21 Thread Ruediger Pluem
On 03/21/2009 07:22 PM, SAMEER KUMAR wrote: Hi, Well apache website offers a complete documentation of all the functions... Best way is you can sit with a formatted print of all the modules... If some one can find a better and more formatted way to understand and interospect the apache code

Re: Apache 2.2 architecture

2009-03-21 Thread SAMEER KUMAR
Dear, Thanks alot!!! I wanna know more about how to use APR library in detail with some examples, I wanna use it for my project. Sameer Kumar B.Tech, Computer Engineering Institute of Technology, Nirma University, Ahmedabad, Gujarat On Sun, Mar 22, 2009 at 2:40 AM, Ruediger Pluem

Re: Apache 2.2 architecture

2009-03-21 Thread Sander Temme
On Mar 21, 2009, at 2:23 PM, SAMEER KUMAR wrote: I wanna know more about how to use APR library in detail with some examples, I wanna use it for my project. Try this article for some pointers: http://www.ddj.com/cpp/184401691 S. -- Sander Temme scte...@apache.org PGP FP: 51B4 8727 466A