fastcgi-state.txt 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. =================
  2. FastCGI Internals
  3. =================
  4. ---------------
  5. Module: fastcgi
  6. ---------------
  7. :Author: Jan Kneschke
  8. :Date: $Date: 2004/08/01 07:01:29 $
  9. :Revision: $Revision: 1.1 $
  10. :abstract:
  11. This is a short summary of the state-engine which is driving the FastCGI
  12. module. It describes the basic concepts and the way the different parts
  13. of the module are connected.
  14. .. meta::
  15. :keywords: lighttpd, state-engine, fastcgi
  16. .. contents:: Table of Contents
  17. Description
  18. ===========
  19. States
  20. ------
  21. The state-engine is currently made of 6 states which are walk-through on
  22. the way each connection.
  23. :init:
  24. prepare fastcgi-connection
  25. :connect:
  26. waiting for a connection
  27. :prepwrite:
  28. build the fastcgi-request
  29. :write:
  30. write the fastcgi-request to the network
  31. :read:
  32. read fastcgi-response from network and push it to the write-queue
  33. :close:
  34. terminate the connection
  35. .. image:: fastcgi-state.png
  36. Delays
  37. ------
  38. connect, write and read may need to wait for an fdevent. That's the reason
  39. for the loop in the state-diagram.