]> granicus.if.org Git - python/commitdiff
Explicitly close rfile and wfile in StreamRequestHandler.finish() --
authorGuido van Rossum <guido@python.org>
Fri, 3 Apr 1998 16:49:52 +0000 (16:49 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 3 Apr 1998 16:49:52 +0000 (16:49 +0000)
mostly for jpython.

Lib/SocketServer.py

index 64a86d11c1905d017d7a7701bb3ed5e98293074d..cf8a365fb8a6bf2ad02e42217b0b606cfe94cdff 100644 (file)
@@ -396,6 +396,8 @@ class StreamRequestHandler(BaseRequestHandler):
 
     def finish(self):
         self.wfile.flush()
+        self.wfile.close()
+        self.rfile.close()
 
 
 class DatagramRequestHandler(BaseRequestHandler):