So this is a pretty generalized and ambiguous question, which I apologize for up front.
Basically, I'm in a mod_perl environment (mp2/apache2.2/prefork) and have an application setup to utilize Authen, Response and Cleanup handlers. In one environment, this works completely fine. In another, new environment, something I've never seen happens: the cleanup phase runs after the Authen phase
and the response phase.
I know I lack on some details here, but I'm really hoping there's an easy answer for this. Is there any way to fall into a situation where the Cleanup phase runs twice within the same request cycle? Surely it's something with the new environment, but the two are so identical I can't put my finger on any difference.
I'm not exactly stuck between a rock and a hard place, I have an ugly work-around that will get me out of this double-cleanup situation, but I'd rather it work... like I'd expect: one cleanup invocation after the response phase and after the socket has closed.
Thanks in advance for any help.