Show More
@@ -42,6 +42,7 b' from __future__ import absolute_import' | |||||
42 |
|
42 | |||
43 | import SocketServer |
|
43 | import SocketServer | |
44 | import errno |
|
44 | import errno | |
|
45 | import gc | |||
45 | import inspect |
|
46 | import inspect | |
46 | import os |
|
47 | import os | |
47 | import re |
|
48 | import re | |
@@ -569,6 +570,9 b' class _requesthandler(SocketServer.Strea' | |||||
569 | cerr = commandserver.channeledoutput(self.wfile, 'e') |
|
570 | cerr = commandserver.channeledoutput(self.wfile, 'e') | |
570 | traceback.print_exc(file=cerr) |
|
571 | traceback.print_exc(file=cerr) | |
571 | raise |
|
572 | raise | |
|
573 | finally: | |||
|
574 | # trigger __del__ since ForkingMixIn uses os._exit | |||
|
575 | gc.collect() | |||
572 |
|
576 | |||
573 | def _tempaddress(address): |
|
577 | def _tempaddress(address): | |
574 | return '%s.%d.tmp' % (address, os.getpid()) |
|
578 | return '%s.%d.tmp' % (address, os.getpid()) |
General Comments 0
You need to be logged in to leave comments.
Login now