Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset f09e3b1603ee by Florent Xicluna in branch '2.7':
Issue #13140: Fix the daemon_threads attribute of ThreadingMixIn.
http://hg.python.org/cpython/rev/f09e3b1603ee
New changeset 94017ce9304d by Florent Xicluna in
Florent Xicluna florent.xicl...@gmail.com added the comment:
I agree it is a bug. It does not make sense to preserve this behaviour.
I plan to apply the initial patch by Charles-François to 2.7 and 3.x.
--
___
Python tracker rep...@bugs.python.org
Changes by Florent Xicluna florent.xicl...@gmail.com:
--
assignee: - flox
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13140
___
___
Charles-François Natali neolo...@free.fr added the comment:
I would prefer to preserve the inheritance by default, and to change the
daemonic attribute only if it is explicitly set to True or False.
This way it will be backward compatible.
It may be backward compatible, but IMHO, the
Florent Xicluna florent.xicl...@gmail.com added the comment:
I would prefer to preserve the inheritance by default, and to change the
daemonic attribute only if it is explicitly set to True or False.
This way it will be backward compatible.
Patch attached.
--
versions: -Python 2.6
Charles-François Natali neolo...@free.fr added the comment:
Start a new thread to process the request.
t = threading.Thread(target = self.process_request_thread,
args = (request, client_address))
if self.daemon_threads:
t.daemon =
New submission from Florent Xicluna florent.xicl...@gmail.com:
I use the socketserver.ThreadingMixIn to create a TCPServer.
I set the server thread as daemon (t.daemon=True).
But I want the client threads to run as non-daemon.
According to the documentation, the daemon_threads class attribute