fix: add bounded timeout to Jina credential validation requests (#37637)

This commit is contained in:
Evan 2026-06-22 10:56:09 +08:00 committed by GitHub
parent ff81e7b393
commit 16fd55ab58
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 2 deletions

View File

@ -8,7 +8,10 @@ from services.auth.api_key_auth_base import ApiKeyAuthBase, AuthCredentials
_http_client: httpx.Client = get_pooled_http_client(
"auth:jina_standalone",
lambda: httpx.Client(limits=httpx.Limits(max_keepalive_connections=50, max_connections=100)),
lambda: httpx.Client(
timeout=httpx.Timeout(10.0),
limits=httpx.Limits(max_keepalive_connections=50, max_connections=100),
),
)

View File

@ -8,7 +8,10 @@ from services.auth.api_key_auth_base import ApiKeyAuthBase, AuthCredentials
_http_client: httpx.Client = get_pooled_http_client(
"auth:jina",
lambda: httpx.Client(limits=httpx.Limits(max_keepalive_connections=50, max_connections=100)),
lambda: httpx.Client(
timeout=httpx.Timeout(10.0),
limits=httpx.Limits(max_keepalive_connections=50, max_connections=100),
),
)