process initialisation in prefork-MPM

2008-12-22 Thread Andrej van der Zee
Hi, I need to initialise some structures for each process (in prefork MPM) when it is created, and need to be able to access these structures in ap_hook_post_read_request and ap_hook_log_transaction handlers. I would like to initialise the structures before the first HTTP request is being served

Re: process initialisation in prefork-MPM

2008-12-22 Thread Sorin Manolache
On 2008-12-22, Andrej van der Zee andrejvander...@gmail.com wrote: Hi, I need to initialise some structures for each process (in prefork MPM) when it is created, and need to be able to access these structures in ap_hook_post_read_request and ap_hook_log_transaction handlers. I would like

Re: process initialisation in prefork-MPM

2008-12-22 Thread Andrej van der Zee
You hook child_init (ap_hook_child_init) and store your data in global variables that are accessed by post_read_request and log_transaction. Easy enough. Thanks, Andrej

Re: process initialisation in prefork-MPM

2008-12-22 Thread Andrej van der Zee
Hi, You hook child_init (ap_hook_child_init) and store your data in global variables that are accessed by post_read_request and log_transaction. BTW, in a worker-MPM, is child_init executed for every created worker-thread? Or is it per process? Thank you, Andrej

Re: process initialisation in prefork-MPM

2008-12-22 Thread Saju Pillai
On 22-Dec-08, at 6:49 PM, Andrej van der Zee wrote: Hi, You hook child_init (ap_hook_child_init) and store your data in global variables that are accessed by post_read_request and log_transaction. BTW, in a worker-MPM, is child_init executed for every created worker-thread? Or is it

Regular expression matching for multi line strings...

2008-12-22 Thread Kevac Marko
Hello. ap_regexec() do not match multi line strings without AP_REG_NEWLINE flag, but it should. For example i have string: SELECT\r\nstate.SECNAME,\r\nstate.SHORTNAME,\r\n state.LATNAME,\r\nstate.DECIMALS,\r\nstate.PREVPRICE,\r\n realtime.BOARDID as BOARDID,\r\n

Re: process initialisation in prefork-MPM

2008-12-22 Thread Sander Temme
On Dec 22, 2008, at 4:48 AM, Sorin Manolache wrote: You hook child_init (ap_hook_child_init) and store your data in global variables that are accessed by post_read_request and log_transaction. Global variables are fine if your module will never run multithreaded, or you won't write to the

Re: Need suggestions for adding tproxy support to mod_proxy

2008-12-22 Thread Pranav Desai
On Fri, Dec 19, 2008 at 9:06 PM, Pranav Desai pranavade...@gmail.com wrote: On Thu, Dec 18, 2008 at 2:34 AM, Graham Leggett minf...@sharp.fm wrote: Pranav Desai wrote: Yeah, the application changes are restricted to a few lines. I believe you mean the connect_backend() and not the

Re: svn commit: r726113 - /httpd/httpd/trunk/server/mpm/worker/fdqueue.c

2008-12-22 Thread Basant Kumar kukreja
Yes, unless until we clearly understand that volatile is not useful here, we should keep it. Regards, Basant. On Fri, Dec 12, 2008 at 02:57:03PM -0800, Chris Darroch wrote: Ruediger Pluem wrote: Not quite sure if this is really correct because apr_atomic_casptr wants to have a (volatile

Re: svn commit: r691418 [1/2] - in /httpd/httpd/trunk: ./ docs/manual/mod/ modules/filters/

2008-12-22 Thread Basant Kumar kukreja
* Transient bucket seems to be working fine in mod_sed. * Added error handling code so that if ap_pass_brigade fails during request processing, error is returned to sed_response_filter / sed_request_filter. Testing : * Compiled with 2.2 branch and make sure there is no regression (against