HTTP 1.1 support in BaseHTTPServer [patch 430706]

Chris Lawrence quango at watervalley.net
Fri Jun 29 05:03:34 EDT 2001


I've submitted a patch to SourceForge that implements optional persistent
connection support in BaseHTTPServer (#430706).  Your feedback would be
appreciated; I've tested it on an experimental HTTP proxy server and it
seems to work well, but it would benefit from greater and wider testing.

The persistence is not enabled by default, since it would break servers
that don't send Content-Length headers.  To enable persistent
connections, set self.protocol_version to "HTTP/1.1".  It will fallback
nicely for HTTP/0.9 and HTTP/1.0 clients, however.

http://sourceforge.net/tracker/?func=detail&aid=430706&group_id=5470&atid=305470


Chris



More information about the Python-list mailing list