From d407b29fe9e0a1ae2b12fc3b48a0f2109359dfa3 Mon Sep 17 00:00:00 2001 From: YueGuobin Date: Tue, 16 Jun 2026 00:58:12 +0800 Subject: [PATCH] Increase HTTP connection pool to 500/1000 --- gns3server/agent/gns3_copilot/gns3_client/custom_gns3fy.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gns3server/agent/gns3_copilot/gns3_client/custom_gns3fy.py b/gns3server/agent/gns3_copilot/gns3_client/custom_gns3fy.py index fb260a286..60ad3ed75 100644 --- a/gns3server/agent/gns3_copilot/gns3_client/custom_gns3fy.py +++ b/gns3server/agent/gns3_copilot/gns3_client/custom_gns3fy.py @@ -192,6 +192,10 @@ class Gns3Connector: Creates the requests.Session object and applies the necessary parameters """ self.session = requests.Session() # pragma: no cover + # Increase connection pool size to support concurrent MCP batch operations + adapter = requests.adapters.HTTPAdapter(pool_connections=500, pool_maxsize=1000) + self.session.mount("http://", adapter) + self.session.mount("https://", adapter) self.session.headers["Accept"] = "application/json" # pragma: no cover # Set authentication based on API version