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
Thanks to Perrin and Torsten for their input.
I will be investigating Torsten's MMapDB, and will report results in a few
weeks.
-- jeff
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
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: 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