commit | 5f761d79c0578c24f72663493915b8975e246fbd | [log] [tgz] |
---|---|---|
author | Florent Xicluna <florent.xicluna@gmail.com> | Fri Nov 04 10:15:57 2011 +0100 |
committer | Florent Xicluna <florent.xicluna@gmail.com> | Fri Nov 04 10:15:57 2011 +0100 |
tree | 4eb7b006ebca307d40e3f694fc4b400179388dc0 | |
parent | 09f871462f2b6cd53daf7cb43e861737af9ebc52 [diff] [blame] |
Issue #13140: Fix the daemon_threads attribute of ThreadingMixIn.
diff --git a/Lib/SocketServer.py b/Lib/SocketServer.py index 71b9caa..2ff3888 100644 --- a/Lib/SocketServer.py +++ b/Lib/SocketServer.py
@@ -589,8 +589,7 @@ """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.setDaemon (1) + t.daemon = self.daemon_threads t.start()