Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(801)

Unified Diff: Lib/SimpleXMLRPCServer.py

Issue 63143: SimpleXMLRPCServer doesn't support http/1.1 keep-alive Base URL: http://svn.python.org/view/*checkout*/python/trunk/
Patch Set: A more complete patch. Makes the Flush responsibility of the BaseHTTPRequestHandler Created 14 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Lib/DocXMLRPCServer.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Lib/SimpleXMLRPCServer.py
===================================================================
--- Lib/SimpleXMLRPCServer.py (revision 73271)
+++ Lib/SimpleXMLRPCServer.py (working copy)
@@ -490,10 +490,6 @@
self.end_headers()
self.wfile.write(response)
- # shut down the connection
- self.wfile.flush()
- self.connection.shutdown(1)
-
def report_404 (self):
# Report a 404 error
self.send_response(404)
@@ -502,9 +498,6 @@
self.send_header("Content-length", str(len(response)))
self.end_headers()
self.wfile.write(response)
- # shut down the connection
- self.wfile.flush()
- self.connection.shutdown(1)
def log_request(self, code='-', size='-'):
"""Selectively log an accepted request."""
@@ -557,7 +550,7 @@
response = self._marshaled_dispatch(request_text)
- print 'Content-Type: text/xml'
+ print 'Content-Type: text/xml'
print 'Content-Length: %d' % len(response)
print
sys.stdout.write(response)
« no previous file with comments | « Lib/DocXMLRPCServer.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b