Tomas Doran > Catalyst-Engine-SCGI-0.03 > Catalyst::Engine::SCGI

Download:
Catalyst-Engine-SCGI-0.03.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.03   Source  

NAME ^

Catalyst::Engine::SCGI - SCGI Engine

DESCRIPTION ^

This is the SCGI engine.

OVERLOADED METHODS ^

This class overloads some methods from Catalyst::Engine::CGI.

$self->run($c, $port, $detach)

Start the SCGI server. If $port is not set default to port 9000. If $detach is set, server will go into the background.

$self->finalize_headers ( $c )

 Write finalized headers to socket

$self->write ( $c, $buffer )

 Write directly to socket

$self->read_chunk ( $c, $buffer, $readlen )

 Read Body content to $_[3]'s set length and direct output to $_[2].

$self->daemon_fork()

Performs the first part of daemon initialisation. Specifically, forking. STDERR, etc are still connected to a terminal.

$self->daemon_detach( )

Performs the second part of daemon initialisation. Specifically, disassociates from the terminal.

However, this does not change the current working directory to "/", as normal daemons do. It also does not close all open file descriptors (except STDIN, STDOUT and STDERR, which are re-opened from /dev/null).

syntax highlighting: