NAME

Mojo::Server::FCGI::Prefork - Prefork FastCGI Server

SYNOPSIS

use Mojo::Server::FCGI::Prefork;
my $prefork = Mojo::Server::FCGI::Prefork->new;
$prefork->run;

DESCRIPTION

Mojo::Server::FCGI::Prefork is a preforking FastCGI implementation using FCGI.

ATTRIBUTES

Mojo::Server::FCGI::Prefork inherits all attributes from Mojo::Server and implements the following new ones.

fcgi

my $fcgi = $prefork->fcgi;
$prefork = $prefork->fcgi(Mojo::Server::FCGI->new);

FCGI instance to use for request processing.

$prefork->fcgi->app_class('Mojo::HelloWorld');

listen

my $listen = $prefork->listen
$prefork   = $prefork->listen(':3000');
$prefork   = $prefork->listen('/some/unix.socket');

Port or UNIX domain socket to listen on.

METHODS

Mojo::Server::FCGI inherits all methods from Mojo::Server and implements the following new ones.

child

$prefork->child;

Run worker process.

parent

$prefork->parent;

Run manager process.