summaryrefslogtreecommitdiff
path: root/Lib/SocketServer.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-04-03 16:49:52 +0000
committerGuido van Rossum <guido@python.org>1998-04-03 16:49:52 +0000
commit0b332334091c5c900488f3468892af58ffd508b0 (patch)
tree8251153a746bf743b3dc0151f4538a6b09aabccf /Lib/SocketServer.py
parent4a193333401a6c5b8cf3835e6520ba09e81181a3 (diff)
downloadcpython-0b332334091c5c900488f3468892af58ffd508b0.tar.gz
Explicitly close rfile and wfile in StreamRequestHandler.finish() --
mostly for jpython.
Diffstat (limited to 'Lib/SocketServer.py')
-rw-r--r--Lib/SocketServer.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/SocketServer.py b/Lib/SocketServer.py
index 64a86d11c1..cf8a365fb8 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):