summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-04-03 16:49:52 (GMT)
committerGuido van Rossum <guido@python.org>1998-04-03 16:49:52 (GMT)
commit1d5102cac1d06a604230b5efdf651e2297763ca2 (patch)
tree63c2ae594e3665b94421dbae4134d98eabb3a8df /Lib
parenta90c78b9186f5ba8d91d3be0e684f81f2068c771 (diff)
downloadcpython-1d5102cac1d06a604230b5efdf651e2297763ca2.zip
cpython-1d5102cac1d06a604230b5efdf651e2297763ca2.tar.gz
cpython-1d5102cac1d06a604230b5efdf651e2297763ca2.tar.bz2
Explicitly close rfile and wfile in StreamRequestHandler.finish() --
mostly for jpython.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/SocketServer.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/SocketServer.py b/Lib/SocketServer.py
index 64a86d1..cf8a365 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):