[New-bugs-announce] [issue13140] ThreadingMixIn.daemon_threads is not honored when parent is daemon

Florent Xicluna report at bugs.python.org
Sun Oct 9 22:18:45 CEST 2011


New submission from Florent Xicluna <florent.xicluna at 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 should do the trick.

But it fails: if server is daemon, the clients are daemon too, even if daemon_threads=False.

Demo attached.

----------
components: Library (Lib)
files: test_socketserver.py
messages: 145273
nosy: flox
priority: normal
severity: normal
stage: needs patch
status: open
title: ThreadingMixIn.daemon_threads is not honored when parent is daemon
type: behavior
versions: Python 2.6, Python 2.7, Python 3.2, Python 3.3
Added file: http://bugs.python.org/file23361/test_socketserver.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13140>
_______________________________________


More information about the New-bugs-announce mailing list