Re: modperl book

2010-06-18 Thread Jeff McCarrell
Well, there probably isn't just one book that will fill that particular void. Writing fast, correct, and safe mod_perl is non-trivial, what with taint mode, URL rewriting, handling SQL queries, caching, etc. So there is sometimes a lot of non-perl-specific context that the mod_perl interfaces give

Re: non-stop generational modperl config update strategies?

2010-04-26 Thread Jeff McCarrell
Thanks to Perrin and Torsten for their input. I will be investigating Torsten's MMapDB, and will report results in a few weeks. -- jeff

Re: Pre-processing the request body

2010-04-21 Thread Jeff McCarrell
Hey John If you are the type that likes to buy books, let me give a shout out to _ mod_perl 2 User's Guide _ by Stas Bekman and Jim Brandt. It has helped me a lot to leverage the power available in mp2. I notice Ch 6 of that book: Input and Output filters, with subsections: I/O Filtering Concep

non-stop generational modperl config update strategies?

2010-04-20 Thread Jeff McCarrell
Hello modperl-folk: In a nutshell: I would like to ask the community for pointers on how to evolve our successfully deployed application which gets restarted once / hour to reload configuration state to a model where it is continuously running. Background: We have a long-successfully-deployed mp2

Re: Apache2::SubProcess sucks

2010-02-20 Thread Jeff McCarrell
re: close all open file descriptors portably well, if one is on a POSIX system, _SC_OPEN_MAX gives the max integer. Then just close them all. Here's my usual recipe for this: # close all open file descriptors my $max_fd = POSIX::sysconf(&POSIX::_SC_OPEN_MAX); $max_fd = ((! defined $ma