NAME

Any::Daemon::FCGI - serve the FCGI protocol

INHERITANCE

Any::Daemon::FCGI
  is an IO::Socket::IP

SYNOPSIS

use Any::Daemon::HTTP 0.29;
my $http = Any::Daemon::HTTP->new
  ( listen    => 'www.example.com'
  , protocol  => 'FCGI'
  , ...
  );

DESCRIPTION

The Fast CGI protocol connects a generic front-end web-server (like Apache or NGinx) with an backe-end daemon. The communication reuses connections. The front-end server validates and throttles requests to the back-end daemon. This module is the base for such back-end daemon.

This module extends the network side of a socket. During accept(), each incoming connection will create a new Any::Daemon::FCGI::ClientConn object which handles the requests.

Warning: the session object lives during the whole client connection, which may contain requests from different customers.

Warning: this code is new (nov 2019) and only tested with Apache 2.4. Please report success (and bug-fixes) for other front-end servers.

METHODS

Any::Daemon::FCGI->new(%options)

See options of IO::Socket::IP and IO::Socket.

Accessors

Actions

$obj->accept( [$pkg] )

Wait for a new connection to arrive on the socket.

SEE ALSO

This module is part of Any-Daemon-HTTP distribution version 0.30, built on April 06, 2020. Website: http://perl.overmeer.net/any-daemon/

LICENSE

Copyrights 2013-2020 by [Mark Overmeer]. For other contributors see ChangeLog.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://dev.perl.org/licenses/