File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / lighttpd / doc / outdated / fastcgi-state.txt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Oct 14 10:32:48 2013 UTC (11 years, 2 months ago) by misho
Branches: lighttpd, MAIN
CVS tags: v1_4_41p8, v1_4_35p0, v1_4_35, v1_4_33, HEAD
1.4.33

=================
FastCGI Internals
=================

---------------
Module: fastcgi
---------------

:Author: Jan Kneschke
:Date: $Date: 2013/10/14 10:32:48 $
:Revision: $Revision: 1.1.1.1 $

:abstract:
  This is a short summary of the state-engine which is driving the FastCGI
  module. It describes the basic concepts and the way the different parts
  of the module are connected.

.. meta::
  :keywords: lighttpd, state-engine, fastcgi

.. contents:: Table of Contents

Description
===========

States
------

The state-engine is currently made of 6 states which are walk-through on
the way each connection.

:init:
  prepare fastcgi-connection
:connect:
  waiting for a connection
:prepwrite:
  build the fastcgi-request
:write:
  write the fastcgi-request to the network
:read:
  read fastcgi-response from network and push it to the write-queue
:close:
  terminate the connection

.. image:: fastcgi-state.png

Delays
------

connect, write and read may need to wait for an fdevent. That's the reason
for the loop in the state-diagram.

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>