[Patches] [ python-Patches-550765 ] SocketServer behavior
noreply@sourceforge.net
noreply@sourceforge.net
Mon, 03 Jun 2002 09:45:00 -0700
Patches item #550765, was opened at 2002-04-30 16:06
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=550765&group_id=5470
Category: Library (Lib)
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Michael Gilfix (mgilfix)
Assigned to: Nobody/Anonymous (nobody)
Summary: SocketServer behavior
Initial Comment:
A bug, or lack of behavior in ServerSocket.py was
exposed while created a unit test for Python 2.3. As of
2.3, signals between threads propagate differently.
When cancelling a server that implemented threading
with a keyboard interrupt, the server would shut down
but not terminate (waiting on client threads).
The fit for this was to make the client threads
daemon-threads with the setDaemon call. Because this
was non-apparent, this patch adds a member variable
which acts as a hook and makes it clear that clients
need to either set or unset the variable when deriving
the class to control this behavior.
setDaemon is off by default, as this is thought to be
the consensus behavior.
----------------------------------------------------------------------
>Comment By: Michael Gilfix (mgilfix)
Date: 2002-06-03 12:45
Message:
Logged In: YES
user_id=116038
All Address in the new patch. See SocketServer.py.patch.2.
----------------------------------------------------------------------
Comment By: Martin v. Löwis (loewis)
Date: 2002-06-02 13:44
Message:
Logged In: YES
user_id=21627
Could you please provide changes to the documentation as
well (i.e. Doc/lib/libsocksvr.tex, and Misc/NEWS)?
There is a typo: 'chanegs' -> 'changes'
There is no need to attach the modified source to the patch;
the context diff is enough.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=550765&group_id=5470