[Catalyst] Slow fastcgi: A debugging aid

Ash Berlin ash_cpan at firemirror.com
Tue May 5 10:32:07 GMT 2009


On 5 May 2009, at 04:36, Jon Schutz wrote:

> Octavian Râsnita wrote on 5/4/09 5:43 PM:
>
>> It would be nice to be able to limit the number of requests per
> fastcgi
>> child process...
>
>
> On Mon, 2009-05-04 at 19:56 -0500, Peter Karman wrote:
>
>> Catalyst::Plugin::AutoRestart
>>
>
> Would I be correct in my reading of the code, that since the exit()
> happens in handle_request, the request that triggers the restart does
> not get served?

No, Since the second line is

   my $ret = $c->next::method(@args);

This does the normal request handling first (including writing any  
data) then it checks the process.

-ash


More information about the Catalyst mailing list