From bf618d321c5570974641ab50866dea86c6b4d10a Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Wed, 22 Apr 2015 10:39:43 +0200 Subject: [PATCH] Max 100 thread executor --- gns3server/main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gns3server/main.py b/gns3server/main.py index ac6c6b19..2ced1294 100644 --- a/gns3server/main.py +++ b/gns3server/main.py @@ -21,6 +21,8 @@ import datetime import sys import locale import argparse +import asyncio +import concurrent from gns3server.server import Server from gns3server.web.logger import init_logger @@ -173,6 +175,9 @@ def main(): Project.clean_project_directory() + executor = concurrent.futures.ThreadPoolExecutor(max_workers=100) # We allow 100 parallel executors + loop = asyncio.get_event_loop().set_default_executor(executor) + CrashReport.instance() host = server_config["host"] port = int(server_config["port"])