Terminate workers when main thread terminates
This commit is contained in:
parent
eb15ef7b80
commit
fcc39e1aaf
|
@ -468,6 +468,7 @@ class ProxyHandler(SocketServer.StreamRequestHandler):
|
|||
|
||||
|
||||
ServerBase = SocketServer.ThreadingTCPServer
|
||||
ServerBase.daemon_threads = True # Terminate workers when main thread terminates
|
||||
class ProxyServer(ServerBase):
|
||||
request_queue_size = 20
|
||||
allow_reuse_address = True
|
||||
|
|
Loading…
Reference in New Issue