Plack::Handler::Mongrel2 - Plack Handler For Mongrel2
plackup -s Mongrel2 \ --max_workers=10 \ --max_reqs_per_child=1000 \ --send_spec=tcp://127.0.0.1:9999 \ --send_ident=D807E984-AC0B-11DF-979C-3C4975AD5E34 \ --recv_spec=tcp://127.0.0.1:9998 \ --recv_ident=E80576A8-AC0B-11DF-A841-3D4975AD5E34
EXTERMELY ALPHA CODE! Tested using morengrel2-1.5
Creates a new server. Accepts the following options:
Number of worker processes to spawn.
Number of requests that a child processes before exiting.
The ZeroMQ spec for mongrel2-to-handler socket. Your handler will be receiving requests from this socket.
A unique identifier for the mongrel2-to-handler socket.
The ZeroMQ spec for handler-to-mongrel2 socket. Your handler will be sending responses from this socket.
A unique identifier for the handler-to-mongrel2 socket.
Starts the server.
Replies back to mongrel2
Runs the process loop
Make the backend switchable between blocking and non-blocking usage of zeromq
This library is available under Artistic License v2, and is:
Copyright (C) 2010 Daisuke Maki C<< <daisuke@endeworks.jp> >>
Daisuke Maki <daisuke@endeworks.jp>
<daisuke@endeworks.jp>
To install Plack::Handler::Mongrel2, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::Handler::Mongrel2
CPAN shell
perl -MCPAN -e shell install Plack::Handler::Mongrel2
For more information on module installation, please visit the detailed CPAN module installation guide.