[Patches] [ python-Patches-742598 ] SocketServer timeout, zombies
SourceForge.net
noreply at sourceforge.net
Fri Dec 22 20:01:26 CET 2006
Patches item #742598, was opened at 2003-05-23 17:11
Message generated for change (Settings changed) made by akuchling
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=742598&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Library (Lib)
>Group: Python 2.6
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Michael Pomraning (pilcrow)
>Assigned to: A.M. Kuchling (akuchling)
Summary: SocketServer timeout, zombies
Initial Comment:
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
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=742598&group_id=5470
More information about the Patches
mailing list