Re: Capturing error text for output

2009-03-18 Thread Sorin Manolache
On Wed, Mar 18, 2009 at 02:42, Brooks Sizemore bro...@darg.net wrote: Hello modules-dev, What I'm trying to do may not be possible, but I thought I'd ask here. What I'd like to do is have all of the error messages that get sent to the error log available for redirection to the client browser.

Re: MySQL Virtual Host and Traffic Module

2009-03-18 Thread Dave Ingram
Vaughan, What I have so far are 2 filters which gather the inbound traffic and outbound traffic for each transaction. These work ok and when logging transactions to file all of the in/out byte amounts appear to be correct. The first problem however, is that each child has its own set of

RE: MySQL Virtual Host and Traffic Module

2009-03-18 Thread Vaughan Reid
Hi Dave, Thanks for the response. I haven't thought of doing the SQL query the way you suggested, however I agree that it will cause unnecessary load on busy servers and I would like to keep this as efficient as possible. The second option sounds more reasonable. I have already used threading to

Re: child_init for threads?

2009-03-18 Thread Saju Pillai
Andrej van der Zee wrote: Hi, Thanks for your reply. AFAIK there's no support for such thing in apache. Have a look yourself in server/mpm/worker/worker.c. You can hook create_connection (the first hook offered by apache in a thread after its creation). However, create_connection is called

Re: child_init for threads?

2009-03-18 Thread Andrej van der Zee
Hi, Thanks. Yes. create_connection() is the first hook run as part of request processing, a delay in create_connection() will result in a delay in HTTP processing. That's too bad. I guess I have to hack this into the MPM then. One more question, what would be the way to store

Re: child_init for threads?

2009-03-18 Thread Andrej van der Zee
Hi, Thanks, that helps! Since I am developing my modules in C++, I think I should be using this one: apr_status_t apr_thread_data_set( void * data, const char *key, apr_status_t(*)(void *) cleanup, apr_thread_t

Re: mod_substitute back-references

2009-03-18 Thread Jim Jagielski
doesn't mod_proxy_html do it's own substitutions :/ On Mar 16, 2009, at 7:20 AM, Nick Gearls wrote: I found more info: I had mod_proxy_html loaded. If I remove it, it changes abc to --abc++, thus twice instead of 3 times. Strange, isn't it ? I performed the test on a minimal

Re: [PATCH] mod_dbd with more than one pool

2009-03-18 Thread Kevac Marko
On Fri, Mar 13, 2009 at 2:54 PM, Nick Kew n...@webthing.com wrote: Thanks.  I'll test-drive today. Succeeded? -- Marko Kevac

Re: mod_substitute back-references

2009-03-18 Thread Nick Kew
On Wed, 18 Mar 2009 08:44:12 -0400 Jim Jagielski j...@jagunet.com wrote: doesn't mod_proxy_html do it's own substitutions :/ Only in a URL context. Being markup-aware is what distinguishes it from the various sed-like filter modules. -- Nick Kew Application Development with Apache - the

MySQL Virtual Host and Traffic Module

2009-03-18 Thread Vaughan Reid
Hi everyone, I have been working on a module which, as the title suggests, takes virtual hosts from a database but also does traffic logging back to the database. I have the virtual hosts side of things working perfectly but am having some issues getting traffic logging working the way I want

Re: mod_fcgid

2009-03-18 Thread Chris Darroch
Roy T. Fielding wrote: I think most of the stuff in NOTICE is documentation that belongs in README. The only things we put in NOTICE files are copyright or attribution lines required by the original copyright owners. OK, thanks -- made a quick edit this morning. Makefile and .deps should

Re: [summary] accept mod_fcgid codebase into httpd project

2009-03-18 Thread Jeff Trawick
On Tue, Mar 17, 2009 at 6:44 PM, Chris Darroch chr...@pearsoncmg.comwrote: I'm +1 on the idea of moving toward inclusion in httpd trunk as a module, at least as a longer-term goal. My thoughts were: - Start by branching httpd/mod_fcgid/branches/2.x/mod_fcgid based on the current

Re: patch for handling headers_in and headers_out as tables in mod_lua

2009-03-18 Thread Bertrand Mansion
On Sun, Mar 1, 2009 at 2:37 AM, Brian McCallister bri...@skife.org wrote: On Fri, Feb 27, 2009 at 2:55 AM, Bertrand Mansion bmans...@mamasam.net wrote: And I find it weird that, now, to get 'document root', you have to call r:document_root() instead of r.document_root as it was before.