From 1d5102cac1d06a604230b5efdf651e2297763ca2 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 3 Apr 1998 16:49:52 +0000 Subject: [PATCH] Explicitly close rfile and wfile in StreamRequestHandler.finish() -- mostly for jpython. --- Lib/SocketServer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/SocketServer.py b/Lib/SocketServer.py index 64a86d11c19..cf8a365fb8a 100644 --- a/Lib/SocketServer.py +++ b/Lib/SocketServer.py @@ -396,6 +396,8 @@ class StreamRequestHandler(BaseRequestHandler): def finish(self): self.wfile.flush() + self.wfile.close() + self.rfile.close() class DatagramRequestHandler(BaseRequestHandler):