Create conservative connection-pool limits for upstream requests.
(self)
| 1031 | ) |
| 1032 | |
| 1033 | def _build_limits(self) -> httpx.Limits: |
| 1034 | """Create conservative connection-pool limits for upstream requests.""" |
| 1035 | return httpx.Limits( |
| 1036 | max_keepalive_connections=5, |
| 1037 | max_connections=10, |
| 1038 | ) |
| 1039 | |
| 1040 | async def _fetch_direct_guest_auth(self) -> Dict[str, Any]: |
| 1041 | """匿名号池缺席时,兜底直连拉取一个访客令牌。""" |
no outgoing calls
no test coverage detected