[Catalyst] [PATCH] Engine::FastCGI: post_dispatch miscalled

Eric Wong normalperson at yhbt.net
Sun Feb 5 02:01:29 CET 2006


This small patch fixes a bug where pm_pre_dispatch was run instead of
pm_post_dispatch when proc_manager is used.

--- a/lib/Catalyst/Engine/FastCGI.pm
+++ b/lib/Catalyst/Engine/FastCGI.pm
@@ -102,7 +102,7 @@ sub run {
     while ( $request->Accept >= 0 ) {
         $proc_manager && $proc_manager->pm_pre_dispatch();
         $class->handle_request( env => \%env );
-        $proc_manager && $proc_manager->pm_pre_dispatch();
+        $proc_manager && $proc_manager->pm_post_dispatch();
     }
 }

-- 
Eric Wong



More information about the Catalyst mailing list