Table of Contents

Module: FCGIServer Zope-2.2.1-src/ZServer/FCGIServer.py

ZServer/Medusa FastCGI server, by Robin Dunn.

Accepts connections from a FastCGI enabled webserver, receives request info using the FastCGi protocol, and then hands the request off to ZPublisher for processing. The response is then handed back to the webserver to send down to the browser.

See http://www.fastcgi.com/fcgi-devkit-2.1/doc/fcgi-spec.html for the protocol specificaition.

Imported modules   
import DebugLogger
from Producers import ShutdownProducer, LoggingProducer, file_part_producer, file_close_producer
from PubCore import handle
from PubCore.ZEvent import Wakeup
from ZPublisher.HTTPRequest import HTTPRequest
from ZPublisher.HTTPResponse import HTTPResponse
from ZServer import CONNECTION_LIMIT
from cStringIO import StringIO
from medusa import asynchat, asyncore, logger
from medusa.counter import counter
from medusa.http_server import compute_timezone_for_log
import os
import socket
import string
import sys
from tempfile import TemporaryFile
import thread
import time
from types import StringType
Classes   
FCGIChannel

Process a FastCGI connection. This class implements most of the

FCGIPipe

This class acts like a file and is used to catch stdout/stderr

FCGIRecord

This class represents the various record structures used in the

FCGIResponse
FCGIServer

Listens for and accepts FastCGI requests and hands them off to a


Table of Contents

This document was automatically generated on Mon Sep 4 07:33:06 2000 by HappyDoc version r0_6