mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Explicitly close rfile and wfile in StreamRequestHandler.finish() --
mostly for jpython.
This commit is contained in:
parent
a90c78b918
commit
1d5102cac1
1 changed files with 2 additions and 0 deletions
|
@ -396,6 +396,8 @@ class StreamRequestHandler(BaseRequestHandler):
|
|||
|
||||
def finish(self):
|
||||
self.wfile.flush()
|
||||
self.wfile.close()
|
||||
self.rfile.close()
|
||||
|
||||
|
||||
class DatagramRequestHandler(BaseRequestHandler):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue