Commit 4cedc1e8 authored by Anthony Baxter's avatar Anthony Baxter

Clearing out old patch queue. Patch #558547, make SocketServer more

robust. This makes socketserver's close() method callable repeatedly
without error - similar to other file-like objects.
parent bf1b1fdb
......@@ -561,7 +561,8 @@ class StreamRequestHandler(BaseRequestHandler):
self.wfile = self.connection.makefile('wb', self.wbufsize)
def finish(self):
self.wfile.flush()
if not self.wfile.closed:
self.wfile.flush()
self.wfile.close()
self.rfile.close()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment