This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jwarkentin
Recipients jwarkentin
Date 2011-02-03.22:01:12
SpamBayes Score 4.0534564e-05
Marked as misclassified No
Message-id <1296770474.15.0.807802878959.issue11109@psf.upfronthosting.co.za>
In-reply-to
Content
This is the same issue as was reported here: http://bugs.python.org/issue1954. It is still a problem in Python 3.1. I'm writing a server that will be receiving a massive number of requests and I'd like to eliminate the zombie problem. Once I figured out what was going on, I tried adding a call to collect_children() in the serve_forever() loop. It worked very well. I've included a patch of what I did, however, I obviously can't leave this change in my socketserver.py because we will be deploying this on a lot of servers.

Is there any reason not to collect_children() in the serve_forever() loop? It seems like the place to do it to me. The patch will only collect children if there are any, so it doesn't have to call it every time through the loop.
History
Date User Action Args
2011-02-03 22:01:14jwarkentinsetrecipients: + jwarkentin
2011-02-03 22:01:14jwarkentinsetmessageid: <1296770474.15.0.807802878959.issue11109@psf.upfronthosting.co.za>
2011-02-03 22:01:13jwarkentinlinkissue11109 messages
2011-02-03 22:01:13jwarkentincreate