feat: WS 每 IP 并发连接上限(默认10,(租户,IP) 键,finally 释放)

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
浅念
2026-10-12 20:54:28 +08:00
parent fd0f49870c
commit 54a65ed7da
5 changed files with 173 additions and 8 deletions
+2 -1
View File
@@ -16,7 +16,8 @@ DEFAULT_CONFIG: dict = {
"push": {"enabled": False, "url": "", "api_key": "", "prefix": "", "timeout": 10,
"max_attempts": 3, "retry_backoff_base": 1.0},
"ai": {"provider": "glm", "api_key": None, "base_url": None, "model": "glm-4-flash"},
"engine": {"context_seed_keys": {}, "rate_limit_per_hour": 30},
"engine": {"context_seed_keys": {}, "rate_limit_per_hour": 30,
"ws_conn_limit": 10},
"misc": {"name_to_region_extras": {}},
}