Sprocket::Server::PreFork - The PreForking Sprocket Server


Sprocket documentation  | view source Contained in the Sprocket distribution.

Index


NAME

Top

Sprocket::Server::PreFork - The PreForking Sprocket Server

SYNOPSIS

Top

    use Sprocket qw( Server::PreFork );

    Sprocket::Server::PreFork->spawn(
        Name => 'Test Server',
        ListenAddress => '127.0.0.1', # Defaults to INADDR_ANY
        ListenPort => 9979,           # Defaults to random port
        Plugins => [
            {
                plugin => MyPlugin->new(),
                priority => 0, # default
            },
        ],
        LogLevel => 4,
        MaxConnections => 10000,
        Processes => 4,
    );




DESCRIPTION

Top

Sprocket::Server::PreFork forks processes for Sprocket::Server

NOTE

Top

This module subclasses Sprocket:Server with one additional parameter: Processes => (Int). It will fork 3 additional processes to total 4.

SEE ALSO

Top

POE, Sprocket, Sprocket::Connection, Sprocket::Plugin, Sprocket::Client, Sprocket::Server

AUTHOR

Top

David Davis <xantus@cpan.org>

RATING

Top

Please rate this module. http://cpanratings.perl.org/rate/?distribution=Sprocket

COPYRIGHT AND LICENSE

Top


Sprocket documentation  | view source Contained in the Sprocket distribution.