Explicitly close rfile and wfile in StreamRequestHandler.finish() --

mostly for jpython.
This commit is contained in:
Guido van Rossum 1998-04-03 16:49:52 +00:00
parent a90c78b918
commit 1d5102cac1
1 changed files with 2 additions and 0 deletions

View File

@ -396,6 +396,8 @@ class StreamRequestHandler(BaseRequestHandler):
def finish(self): def finish(self):
self.wfile.flush() self.wfile.flush()
self.wfile.close()
self.rfile.close()
class DatagramRequestHandler(BaseRequestHandler): class DatagramRequestHandler(BaseRequestHandler):