Add timeout to integrated sever
This commit is contained in:
@@ -170,6 +170,7 @@ def run():
|
||||
name, filename, exception))
|
||||
else:
|
||||
server_class = ThreadedHTTPServer
|
||||
server_class.client_timeout = configuration.getint("server", "timeout")
|
||||
|
||||
if not configuration.getboolean("server", "dns_lookup"):
|
||||
RequestHandler.address_string = lambda self: self.client_address[0]
|
||||
|
||||
Reference in New Issue
Block a user