New submission from Senthil Kumaran <sent...@uthcode.com>:

socketserver.ForkingMixin class has a collect_children method, that waits for 
the children to exit.
But, that waits for any child process and not just the ones spawned the 
socketserver alone.

            try:
                pid, status = os.waitpid(0, 0)
            except os.error:
                pid = None

This is performance lag and can be improved. The collect_children can only 
wait/collect it's own children.

----------
messages: 136931
nosy: orsenthil, pitrou
priority: normal
severity: normal
stage: needs patch
status: open
title: socketserver.ForkingMixin collect_children routine needs to collect only 
it's children
type: resource usage
versions: Python 3.3

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12184>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to