diff options
| author | Guido van Rossum <guido@python.org> | 1998-04-03 16:49:52 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 1998-04-03 16:49:52 +0000 |
| commit | 0b332334091c5c900488f3468892af58ffd508b0 (patch) | |
| tree | 8251153a746bf743b3dc0151f4538a6b09aabccf /Lib/SocketServer.py | |
| parent | 4a193333401a6c5b8cf3835e6520ba09e81181a3 (diff) | |
| download | cpython-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.py | 2 |
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): |
