From c1e6a5709cfb76249781639e1a5422e1474b4e62 Mon Sep 17 00:00:00 2001 From: Nixevol Date: Sun, 25 Oct 2026 07:10:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8A=8A=E8=BF=9E=E6=8E=A5=E6=B1=A0?= =?UTF-8?q?=E4=B8=8A=E9=99=90=E6=8F=90=E9=AB=98=E5=88=B0=E4=B8=89=E7=99=BE?= =?UTF-8?q?=E5=B9=B6=E4=B8=8E=E4=BF=9D=E6=B4=BB=E8=BF=9E=E6=8E=A5=E6=95=B0?= =?UTF-8?q?=E5=AF=B9=E9=BD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/platform/client.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/app/platform/client.py b/backend/app/platform/client.py index d2ccfa2..5ffbab5 100644 --- a/backend/app/platform/client.py +++ b/backend/app/platform/client.py @@ -36,6 +36,7 @@ from app.platform.sign import build_sign, wfs_sig _EXECUTION = re.compile(r'name="execution"\s+value="([^"]+)"', re.I) _PUBLIC_KEY = re.compile(r'setPublicKey\("([^"]+)"\)') +POOL_CONNECTIONS = 300 class NqiError(Exception): @@ -130,7 +131,10 @@ class NqiClient: timeout=httpx.Timeout(45.0, connect=15.0), follow_redirects=True, trust_env=False, - limits=httpx.Limits(max_connections=200, max_keepalive_connections=40), + limits=httpx.Limits( + max_connections=POOL_CONNECTIONS, + max_keepalive_connections=POOL_CONNECTIONS, + ), ) async def aclose(self) -> None: