commit | 12b66b5217d7cbccbeb918683f6df8ab9ae84c3d | [log] [tgz] |
---|---|---|
author | Florent Xicluna <florent.xicluna@gmail.com> | Fri Nov 04 10:16:28 2011 +0100 |
committer | Florent Xicluna <florent.xicluna@gmail.com> | Fri Nov 04 10:16:28 2011 +0100 |
tree | 8234a13900a989e53f34919bf361739e53d2fb9a | |
parent | dcfde5aac99cd1ff7e43b75103feba44a453055a [diff] [blame] |
Closes #13140: Fix the daemon_threads attribute of ThreadingMixIn.
diff --git a/Lib/socketserver.py b/Lib/socketserver.py index 0e2ba83..cd367f1 100644 --- a/Lib/socketserver.py +++ b/Lib/socketserver.py
@@ -588,8 +588,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.daemon = True + t.daemon = self.daemon_threads t.start()