Docs InternalFastCGI » History » Revision 6
« Previous |
Revision 6/11
(diff)
| Next »
moo, 2007-07-07 15:29
TracNav(DocsToc))
{{{
#!rst
=================
FastCGI Internals
=================
---------------
Module: fastcgi
---------------
.. contents:: Table of Contents
Description ===========
States
------
The FastCGI state machine currently consists of six states,
each of which is visited in turn as a connection is processed.
:init:
prepare for a connection
:connect:
wait for a connection
:prepwrite:
build the request
:write:
write the request to the network
:read:
read the response from network and push it to the write queue
:close:
terminate the connection
Delays
------
The connect, write, and read states may need to wait for an fdevent.
The delays are represented by loops in the state diagram below.
}}}
{{{
#!graphviz
digraph fcgistate {
init -> connect -> prepwrite -> write -> read -> close
write -> write
read -> read
connect -> connect
}
}}}
Updated by moo over 17 years ago · 6 revisions