diff Lib/SocketServer.py @ 7840:aaa204a05f84 legacy-trunk

Explicitly close rfile and wfile in StreamRequestHandler.finish() -- mostly for jpython.
author Guido van Rossum <guido@python.org>
date Fri, 03 Apr 1998 16:49:52 +0000
parents fb4b4d069cc7
children de0f0c3ed424
line wrap: on
line diff
--- a/Lib/SocketServer.py	Fri Apr 03 16:05:38 1998 +0000
+++ b/Lib/SocketServer.py	Fri Apr 03 16:49:52 1998 +0000
@@ -396,6 +396,8 @@
 
     def finish(self):
         self.wfile.flush()
+        self.wfile.close()
+        self.rfile.close()
 
 
 class DatagramRequestHandler(BaseRequestHandler):