Terminate workers when main thread terminates

This commit is contained in:
Henrik Nordstrom 2011-02-10 02:56:14 +01:00
parent eb15ef7b80
commit fcc39e1aaf
1 changed files with 1 additions and 0 deletions

View File

@ -468,6 +468,7 @@ class ProxyHandler(SocketServer.StreamRequestHandler):
ServerBase = SocketServer.ThreadingTCPServer ServerBase = SocketServer.ThreadingTCPServer
ServerBase.daemon_threads = True # Terminate workers when main thread terminates
class ProxyServer(ServerBase): class ProxyServer(ServerBase):
request_queue_size = 20 request_queue_size = 20
allow_reuse_address = True allow_reuse_address = True