Re: Dyanamic loading of apache hash table.

2008-12-03 Thread Mads Toftum
On Wed, Dec 03, 2008 at 07:04:24PM +0530, Jayasingh Samuel wrote:
 I have a hash map which takes its input and key from a file. I store it on 
 the server Startup.  Now the  file content will be changed automatically and 
 i want to reload the hash map automatically after hitting some handler. What 
 i see is, after reloading the hash map using the handler, iam able to see the 
 new Contents and the old contents alternatively.All the thread process are 
 not getting updated with the new changes. 
  
Sounds a lot like what RewriteMap does. It may be worth looking
at the code for mod_rewrite to get inspiration.

vh

Mads Toftum
-- 
http://soulfood.dk


Re: (resend) RE: mod_ssl

2007-12-14 Thread Mads Toftum
On Thu, Dec 13, 2007 at 09:50:46PM -0500, Hammer, Tim wrote:
 I am attempting to upgrade httpd from 1.3.x to 2.2.x for our web
 application. I have managed to get everything building and working,
 
...

 As you can see, the call from mod_ssl.so into the buckets/ code is
 passing a null pointer. None of our other modules have been modified to
 use buckets. Does mod_ssl require the use of buckets?
  
Are you trying to port mod_ssl from 1.3.x to 2.2.x?
That's been done long ago and 2.x includes a port of mod_ssl.

vh

Mads Toftum
-- 
http://soulfood.dk


Re: (resend) RE: mod_ssl

2007-12-14 Thread Mads Toftum
On Fri, Dec 14, 2007 at 11:01:09AM -0500, Hammer, Tim wrote:
 No, I am trying to use the new (2.2.x) mod_ssl with our modules that
 have been ported from 1.3.x to 2.2.x. However, the port did not
 convert our modules to use buckets and I am wondering if the new mod_ssl
 is requiring the content generator(s) (our modules) to have created a
 brigade.
 
Ah. And everything works when mod_ssl is left out?

vh

Mads Toftum
-- 
http://soulfood.dk


Re: Testing debugging?

2007-05-06 Thread Mads Toftum
On Sat, May 05, 2007 at 10:03:24PM -0700, Tim Bray wrote:
 I'd be so much happier if I had unit tests, but it's tricky since  
 everything's static.  My best idea is to have an #ifdef TESTING  
 section in my code that has a main() in it that runs the tests (of  
 course this means actually *understanding* the lovely makefile  
 goodness I copied from Josh Rotenberg so I can produce a standalone  
 runnable).  Anyone have a better idea?
 
Apart from the testing framework that someone else mentioned, it is
pretty common to tie debugging info from a module to the debug loglevel
rather than a #define.

 Until I figure out the above, I'm going to be debugging more than one  
 would really want.  Back when I was writing modules for Apache 1.* I  
 got things wired up so I could debug in Emacs... that still about the  
 state of the art?  -Tim

Pretty much, unless you're lucky enough to be on solaris and have dtrace
where you could instrument httpd - along the lines of mod dtrace:
http://prefetch.net/projects/apache_modtrace/

vh

Mads Toftum
-- 
http://soulfood.dk