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.

classification
Title: SocketServer timeout, zombies
Type: Stage:
Components: Library (Lib) Versions: Python 2.6
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: akuchling Nosy List: akuchling, pilcrow
Priority: normal Keywords: patch

Created on 2003-05-23 21:11 by pilcrow, last changed 2022-04-10 16:08 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
sockserv-timeout.diff pilcrow, 2003-05-23 21:11 sockserv-timeout.diff
Messages (2)
msg43828 - (view) Author: Michael Pomraning (pilcrow) Date: 2003-05-23 21:11
Patch adds class variable 'timeout' to BaseServer, and
methods await_request and handle_timeout.  Backwards
compatible API -- timeout is None by default, meaning
await_request jumps directly to get_request and never
calls handle_timeout.

Facilitates periodic server bookkeeping (check config
files, intervalic logging, etc.), if you supply your
own serve loop.

Additionally, ForkingMixin sets timeout to 300 seconds,
and overrides handle_timeout to call collect_children.
 Upshot:  n zombies linger in process table until 5
minutes pass or new request arrives, whichever comes first.

docstring updates, too
(s/reuse_address/allow_reuse_address, etc.)

-Mike
msg60191 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2008-01-19 16:35
Committed to Python 2.6 in rev. 60080.  Thanks for your contribution!

Whenever you find time, it would be nice if you could sign and submit a 
Python contributor agreement; please see
http://www.python.org/psf/contrib/ for the forms.
History
Date User Action Args
2022-04-10 16:08:52adminsetgithub: 38542
2008-01-19 16:35:27akuchlingsetstatus: open -> closed
resolution: accepted
messages: + msg60191
2003-05-23 21:11:34pilcrowcreate