MCPcopy Create free account
hub / github.com/ZyphrZero/z.ai2api_python / _build_limits

Function _build_limits

app/utils/guest_session_pool.py:55–60  ·  view source on GitHub ↗

构建访客会话相关连接池限制。

()

Source from the content-addressed store, hash-verified

53
54
55def _build_limits() -> httpx.Limits:
56 """构建访客会话相关连接池限制。"""
57 return httpx.Limits(
58 max_keepalive_connections=AUTH_HTTP_MAX_KEEPALIVE_CONNECTIONS,
59 max_connections=AUTH_HTTP_MAX_CONNECTIONS,
60 )
61
62
63def _build_async_client(read_timeout: float = 30.0) -> httpx.AsyncClient:

Callers 1

_build_async_clientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected