Max 100 thread executor

This commit is contained in:
Julien Duponchelle 2015-04-22 10:39:43 +02:00
parent 8b879c0614
commit bf618d321c

View File

@ -21,6 +21,8 @@ import datetime
import sys import sys
import locale import locale
import argparse import argparse
import asyncio
import concurrent
from gns3server.server import Server from gns3server.server import Server
from gns3server.web.logger import init_logger from gns3server.web.logger import init_logger
@ -173,6 +175,9 @@ def main():
Project.clean_project_directory() 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() CrashReport.instance()
host = server_config["host"] host = server_config["host"]
port = int(server_config["port"]) port = int(server_config["port"])