mirror of
https://github.com/python/cpython.git
synced 2025-10-02 13:22:19 +00:00
bpo-33540: Fix socketserver.ThreadingMixIn if block_on_close=False (GH-7309)
socketserver.ThreadingMixIn no longer tracks active threads if block_on_close is false.
This commit is contained in:
parent
623b439abe
commit
29ae9dc7c3
1 changed files with 1 additions and 1 deletions
|
@ -655,7 +655,7 @@ class ThreadingMixIn:
|
|||
t = threading.Thread(target = self.process_request_thread,
|
||||
args = (request, client_address))
|
||||
t.daemon = self.daemon_threads
|
||||
if not t.daemon:
|
||||
if not t.daemon and self.block_on_close:
|
||||
if self._threads is None:
|
||||
self._threads = []
|
||||
self._threads.append(t)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue