Daisuke Maki > Plack-Handler-Mongrel2-0.01000_04 > Plack::Handler::Mongrel2

Download:
Plack-Handler-Mongrel2-0.01000_04.tar.gz

Dependencies

Annotate this POD

Module Version: 0.01000_04   Source  

NAME ^

Plack::Handler::Mongrel2 - Plack Handler For Mongrel2

SYNOPSIS ^

    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

DESCRIPTION ^

EXTERMELY ALPHA CODE! Tested using morengrel2-1.5

METHODS ^

new

Creates a new server. Accepts the following options:

max_workers [default 10]

Number of worker processes to spawn.

max_reqs_per_child [default 1000]

Number of requests that a child processes before exiting.

send_spec [required]

The ZeroMQ spec for mongrel2-to-handler socket. Your handler will be receiving requests from this socket.

send_ident [required]

A unique identifier for the mongrel2-to-handler socket.

recv_spec [required]

The ZeroMQ spec for handler-to-mongrel2 socket. Your handler will be sending responses from this socket.

recv_ident [required]

A unique identifier for the handler-to-mongrel2 socket.

run

Starts the server.

reply

Replies back to mongrel2

accept_loop

Runs the process loop

TODO ^

Make the backend switchable between blocking and non-blocking usage of zeromq

LICENSE ^

This library is available under Artistic License v2, and is:

    Copyright (C) 2010  Daisuke Maki C<< <daisuke@endeworks.jp> >>

AUTHOR ^

Daisuke Maki <daisuke@endeworks.jp>

syntax highlighting: