mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-25 01:38:08 +00:00
Max 100 thread executor
This commit is contained in:
parent
8b879c0614
commit
bf618d321c
@ -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"])
|
||||||
|
Loading…
Reference in New Issue
Block a user