mirror of
https://github.com/python/cpython.git
synced 2025-08-19 08:11:46 +00:00
Issue #13140: Fix the daemon_threads attribute of ThreadingMixIn.
This commit is contained in:
parent
09f871462f
commit
5f761d79c0
3 changed files with 3 additions and 3 deletions
|
@ -589,8 +589,7 @@ class ThreadingMixIn:
|
||||||
"""Start a new thread to process the request."""
|
"""Start a new thread to process the request."""
|
||||||
t = threading.Thread(target = self.process_request_thread,
|
t = threading.Thread(target = self.process_request_thread,
|
||||||
args = (request, client_address))
|
args = (request, client_address))
|
||||||
if self.daemon_threads:
|
t.daemon = self.daemon_threads
|
||||||
t.setDaemon (1)
|
|
||||||
t.start()
|
t.start()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -123,7 +123,6 @@ class SocketServerTest(unittest.TestCase):
|
||||||
self.assertEqual(server.server_address, server.socket.getsockname())
|
self.assertEqual(server.server_address, server.socket.getsockname())
|
||||||
return server
|
return server
|
||||||
|
|
||||||
@unittest.skipUnless(threading, 'Threading required for this test.')
|
|
||||||
@reap_threads
|
@reap_threads
|
||||||
def run_server(self, svrcls, hdlrbase, testfunc):
|
def run_server(self, svrcls, hdlrbase, testfunc):
|
||||||
server = self.make_server(self.pickaddr(svrcls.address_family),
|
server = self.make_server(self.pickaddr(svrcls.address_family),
|
||||||
|
|
|
@ -74,6 +74,8 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #13140: Fix the daemon_threads attribute of ThreadingMixIn.
|
||||||
|
|
||||||
- Issue #2892: preserve iterparse events in case of SyntaxError.
|
- Issue #2892: preserve iterparse events in case of SyntaxError.
|
||||||
|
|
||||||
- Issue #670664: Fix HTMLParser to correctly handle the content of
|
- Issue #670664: Fix HTMLParser to correctly handle the content of
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue