in reply to Re: mod_perl reloading handler on each call
in thread mod_perl reloading handler on each call

You are right! Thankyou for restoring my sanity!

I changed the code an introduced a global $output then inside handler() I set $output ||= $c->param('output');. Upon each run I got the script to output $output.

Then I kept calling the script with a different output: output=1, output=2 etc ... once I got to 9, the printed result was 'Output: 1' ... which means it had got to the end of the available processes and reused the first one again :))

Thanks again!


Cheers!
Rick
If this is a root node: Before responding, please ensure your clue bit is set.
If this is a reply: This is a discussion group, not a helpdesk ... If the discussion happens to answer a question you've asked, that's incidental.

Replies are listed 'Best First'.
Re^3: mod_perl reloading handler on each call
by perrin (Chancellor) on Jan 10, 2005 at 04:09 UTC
    You can see what's happening more simply by just printing the process id, $$, in your warning.