[issue11109] socketserver.ForkingMixIn leaves zombies

Gregory P. Smith report at bugs.python.org
Sat Feb 5 21:59:25 CET 2011


Gregory P. Smith <greg at krypto.org> added the comment:

Rather than depending on the internal details of ForkingMixIn in your BaseServer.serve_forever modification I'd prefer to see that simply call self._cleanup()

Define a do-nothing _periodic_cleanup method in BaseServer.  ForkingMixIn should implement its own _periodic_cleanup method that does the active_children test and calls collect_children as appropriate.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11109>
_______________________________________


More information about the Python-bugs-list mailing list