NAME

Egg::Request::FastCGI - Request class to use FastCGI.

SYNOPSIS

Example is dispatch.fcgi

  #!/usr/bin/perl
  BEGIN {
    $ENV{MYAPP_REQUEST_CLASS}   = 'Egg::Request::FastCGI';
    $ENV{MYAPP_FCGI_LIFE_COUNT} =  200;
    $ENV{MYAPP_FCGI_LIFE_TIME}  = 1800;
    $ENV{MYAPP_FCGI_REBOOT}     = 'boot';
    };
  use MyApp;
  MyApp->handler;

DESCRIPTION

It is a request class to use FastCGI.

To make it loaded from Egg::Request, environment variable PROJECT_NAME_REQUEST_CLASS is defined beforehand.

  BEGIN{
   $ENV{MYAPP_REQUEST_CLASS}= 'Egg::Request::FastCGI';
   };

Moreover, the following environment variables are accepted, and define it similarly in the BEGIN block, please when setting it.

  • [PROJECT_NAME]_FCGI_LIFE_COUNT

    After the frequency is processed being set, the process is ended.

  • [PROJECT_NAME]_FCGI_LIFE_TIME

    The process of each set number of seconds is ended.

  • [PROJECT_NAME]_FCGI_REBOOT

    The process is dropped at once when request query of the name is effective when the name of request query is set. 1 When is set, it is assumed the one that 'reboot' of default was specified. For instance, the process falls after outputting contents when assuming http://ho.com/?reboot=1. Contents are output according to the process that started newly when being request it next time. Please do not forget the invalidated thing in the real thing operation because this is a setting for debug.

    * Please note no movement the intention when you do debug by starting two or more processes.

This module only sets up the handler for CGI::Fast.

Processing requesting original has succeeded to Egg::Request::CGI.

SEE ALSO

Egg::Release, Egg::Request, Egg::Request::CGI, CGI::Fast,

AUTHOR

Masatoshi Mizuno <lushe@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2008 Bee Flag, Corp. <http://egg.bomcity.com/>.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.