post_config on reload

2009-03-13 Thread Andrej van der Zee
Hi, I found this piece of code for dealing with the post_config issue (it is called twice, while I need to initialise my stuff only once): void *data; const char *userdata_key = post_config_only_once_key; apr_pool_userdata_get(data, userdata_key, s-process-pool); if (!data) {

Re: custom background thread and module sharing a data structure

2009-03-13 Thread Andrej van der Zee
Hi Saju, For the worker mpm, both cross thread and cross process protection will be needed. apr_proc_mutex.h family supplies cross-process protection, apr_thread_mutex.h provides cross thread protection. You locking method would be a wrapper method that first obtains a process level lock,

Re: post_config on reload

2009-03-13 Thread Sorin Manolache
On Fri, Mar 13, 2009 at 16:21, Andrej van der Zee andrejvander...@gmail.com wrote: Hi, Do not do this -  a restart should be a restart, not a half of a restart.  You should be reinitializing whatever you do on a restart as well as a start.  That's the whole point. I have one phrase that

Re: post_config on reload

2009-03-13 Thread Andrej van der Zee
Hi, Do not do this - a restart should be a restart, not a half of a restart. You should be reinitializing whatever you do on a restart as well as a start. That's the whole point. I have one phrase that should illustrate why : memory leak. For example, if your extension creates another

Re: post_config on reload

2009-03-13 Thread Joe Lewis
Sorin Manolache wrote: On Fri, Mar 13, 2009 at 16:21, Andrej van der Zee andrejvander...@gmail.com wrote: Hi, Do not do this - a restart should be a restart, not a half of a restart. You should be reinitializing whatever you do on a restart as well as a start. That's the whole

Re: custom background thread and module sharing a data structure

2009-03-13 Thread Andrej van der Zee
Hi, Thanks for your comments. See below... Worker mpm is a multithreaded, multiprocess mpm. Multiple child processes host multiple worker threads that run your module code. If your module services 2 concurrent requests in 2 different threads in the same process and both the threads need to

Re: custom background thread and module sharing a data structure

2009-03-13 Thread Saju Pillai
Andrej van der Zee wrote: Hi, Thanks for your comments. See below... Worker mpm is a multithreaded, multiprocess mpm. Multiple child processes host multiple worker threads that run your module code. If your module services 2 concurrent requests in 2 different threads in the same process and

Re: custom background thread and module sharing a data structure

2009-03-13 Thread Andrej van der Zee
Hi, My point is that within a single process, multiple threads can service requests that can end up firing your module code. If you only do process locking you can still have more than 1 thread executing your module code at the same time. Just a process level lock will *not* guarantee

Re: what about mod_arm ?

2009-03-13 Thread Stefan Ruppert
Henri Gomez wrote: Hi to all, I wonder what happened to mod_arm. It still in 0.5 and didn't get updated since 2006-06-19. Did there is still someone (probably an IBMer) involved in this project ? Regards Hi Henri, we at MyARM have a modified version of mod_arm4 which uses the ARM 4.0

Re: native kerberos authn

2009-03-13 Thread Nick Kew
On 13 Mar 2009, at 05:20, Antoine Bourbaki wrote: Greetings all, I would like to ask if there are any plans to natively integrate kerberos 5 authentication into the httpd aaa modules tree. There seems to be quite a lot of interest on that, along with a large user base (mostly large

Re: some advice re: custom WebDav (mod_dav)

2009-03-13 Thread Nick Kew
On 13 Mar 2009, at 01:50, Loyal wrote: To accomplish all this, I thought I'd create a modified version of mod_dav for Apache and run this non-standard config on a dedicated box. In principle that makes perfect sense. What you need to do is (mostly) to create a new fs provider for

Re: [PATCH] mod_dbd with more than one pool

2009-03-13 Thread Kevac Marko
On Tue, Mar 10, 2009 at 10:45 PM, Nick Kew n...@webthing.com wrote: Can I throw an alternative suggestion into the ring. Instead of running dbd_init_sql_init at the end of dbd_construct, run a hook there.  Your function then runs on that hook, but it enables other modules to do their own

Re: [PATCH] mod_dbd with more than one pool

2009-03-13 Thread Nick Kew
On 13 Mar 2009, at 10:21, Kevac Marko wrote: https://issues.apache.org/bugzilla/show_bug.cgi?id=46827 Implemented. Patch added. Comments? Thanks. I'll test-drive today. -- Nick Kew

Re: mod_substitute back-references

2009-03-13 Thread Nick Gearls
You can reproduce the problems on this file: htmlbody abc /body/html 1. Substitute s|abc|abc|n - OK: abc 2. Substitute s|abc|+abc| - NOK: +++abc 3. Substitute s|abc|++abc|nq - NOK: ++abc 4. Substitute s|abc|+++abc|q - NOK: +abc q n flags have no

Re: Misleading example in Apache 2 doc (fix)

2009-03-13 Thread Jose Kahan
Hi André, language\s*=\s*([^;,\s]+) Your expression works well and is simpler than mine. +1 to update the doc with it instead of my proposal. Thanks :) -jose

Re: mod_substitute back-references

2009-03-13 Thread Plüm, Rüdiger, VF-Group
-Ursprüngliche Nachricht- Von: Nick Gearls Gesendet: Freitag, 13. März 2009 13:48 An: dev@httpd.apache.org Betreff: Re: mod_substitute back-references You can reproduce the problems on this file: htmlbody abc /body/html 1. Substitute s|abc|abc|n -

Re: mod_substitute back-references

2009-03-13 Thread Plüm, Rüdiger, VF-Group
Ok. Now I could reproduce it. Could you please check if the following patch fixes it for you? Index: modules/filters/mod_substitute.c === --- modules/filters/mod_substitute.c(revision 753197) +++ modules/filters/mod_substitute.c

Re: post_config on reload

2009-03-13 Thread Joe Lewis
Andrej van der Zee wrote: Hi, I was wondering if there is a solution for detecting a post_config invocation on behalf of apachctl restart instead of a clean start (in case of a restart, I do not want to initialise my stuff again). Do not do this - a restart should be a restart, not a half

RE: some advice re: custom WebDav (mod_dav)

2009-03-13 Thread Loyal
Thanks, Nick. Appreciate the reply. I'll look more into it, but after quickly scanning the mod_dav source code, looks like I have a big learning curve ahead of me to understand where to insert my modifications. I have cobbled together a simple PHP script that does what I want. Do you know of a

workaround for HTTP response where headers mix with content?

2009-03-13 Thread Partap, Marcel
Dear Apache developers, we are migrating our internal wiki to an updated RHEL5 machine which has Apache 2.2.3. installed (with no later versions being available in the repo).. Now a perl script which is queried via AJAX to return parts of an expandable menu tree structure breaks in firefox, a bug

Re: [summary] accept mod_fcgid codebase into httpd project

2009-03-13 Thread Roy T. Fielding
On Feb 18, 2009, at 1:13 PM, Chris Darroch wrote: Roy T. Fielding wrote: I'd suggest that we import the code into SVN by starting not with this temporary package, but with a cvs2svn export of the SourceForge commit history. The relicensing can then follow as a single subsequent commit.