diff --git a/misp_modules/__init__.py b/misp_modules/__init__.py index fd0d7400..81c92b15 100644 --- a/misp_modules/__init__.py +++ b/misp_modules/__init__.py @@ -170,7 +170,11 @@ class ListModules(tornado.web.RequestHandler): class QueryModule(tornado.web.RequestHandler): - executor = ThreadPoolExecutor(None) + try: + # Python 3.5, use as many threads as possible + executor = ThreadPoolExecutor() + except: + executor = ThreadPoolExecutor(5) @run_on_executor def run_request(self, jsonpayload):