Docs InternalFastCGI » History » Revision 4
Revision 3 (moo, 2006-09-17 01:04) → Revision 4/11 (snoofer, 2007-01-24 22:20)
{{{ #!rst ================= FastCGI Internals ================= --------------- Module: fastcgi --------------- .. contents:: Table of Contents Description =========== States ------ The FastCGI state machine state-engine is currently consists made of six states, 6 states which are walk-through on the way each of which is visited in turn as a connection is processed. connection. :init: prepare for a connection fastcgi-connection :connect: wait waiting for a connection :prepwrite: build the request fastcgi-request :write: write the request fastcgi-request to the network :read: read the response fastcgi-response from network and push it to the write queue write-queue :close: terminate the connection Delays ------ The connect, write, write and read states may need to wait for an fdevent. That's the reason The delays are represented by loops for the loop in the state diagram below. state-diagram. }}} {{{ #!graphviz digraph fcgistate { init -> connect -> prepwrite -> write -> read -> close write -> write read -> read connect -> connect } }}}