#804: http1.0 connections are persistent by default (like 1.1 connections)
---------------------------+------------------------------------------------
Reporter: guest | Owner: fumanchu
Type: defect | Status: new
Priority: normal | Milestone:
Component: CherryPy code | Keywords:
---------------------------+------------------------------------------------
1.0 connections should be persistent only if keep-alive is specified.
here's the relevant part and fix:
{{{
Index: __init__.py
===================================================================
--- __init__.py (revision 1942)
+++ __init__.py (working copy)
@@ -405,7 +405,7 @@
environ["REMOTE_USER"] = user
# Persistent connection support
- if self.response_protocol == "HTTP/1.1":
+ if req_protocol == "HTTP/1.1":
if environ.get("HTTP_CONNECTION", "") == "close":
self.close_connection = True
else:
}}}
--
Ticket URL: <
http://www.cherrypy.org/ticket/804>
CherryPy <
http://www.cherrypy.org>
CherryPy - a pythonic, object-oriented HTTP framework