1 package Catalyst::Engine::FastCGI;
4 use base 'Catalyst::Engine::CGI';
9 Catalyst::Engine::FastCGI - FastCGI Engine
13 This is the FastCGI engine.
15 =head1 OVERLOADED METHODS
17 This class overloads some methods from C<Catalyst::Engine::CGI>.
26 my ( $self, $class ) = @_;
28 my $request = FCGI::Request();
30 while ( $request->Accept >= 0 ) {
31 $class->handle_request;
35 =item $self->write($c, $buffer)
40 my ( $self, $c, $buffer ) = @_;
42 unless ( $self->{_prepared_write} ) {
43 $self->prepare_write($c);
44 $self->{_prepared_write} = 1;
47 # FastCGI does not stream data properly if using 'print $handle',
48 # but a syswrite appears to work properly.
49 *STDOUT->syswrite($buffer);
60 Sebastian Riedel, <sri@cpan.org>
62 Christian Hansen, <ch@ngmedia.com>
64 Andy Grundman, <andy@hybridized.org>
68 This program is free software, you can redistribute it and/or modify it under
69 the same terms as Perl itself.