change pool to 10

This commit is contained in:
unknown 2025-11-05 23:49:01 +03:00
parent d4981b23de
commit ce53d0d308
3 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ from .ssl_transport import ssl_transport
limits = httpx.Limits(max_connections=1000, max_keepalive_connections=200)
# Таймауты
timeout = httpx.Timeout(connect=5.0, read=10.0, write=5.0, pool=5.0)
timeout = httpx.Timeout(connect=5.0, read=10.0, write=5.0, pool=10.0)
# Глобальный клиент
client = httpx.AsyncClient(

View File

@ -5,4 +5,4 @@ from config import settings
ctx = ssl.create_default_context(cafile=settings.CA_CERT)
ctx.load_cert_chain(certfile=settings.CLIENT_FULLCHAIN, keyfile=settings.CLIENT_PRIVKEY)
ssl_transport = httpx.AsyncHTTPTransport(verify=ctx, http2=False)
ssl_transport = httpx.AsyncHTTPTransport(verify=ctx, http2=False, retries=2)

View File

@ -1,6 +1,6 @@
[project]
name = "common-lib"
version = "0.0.35"
version = "0.0.36"
description = "Библиотека общих компонентов для микросервисов yobble"
authors = [{ name = "cheykrym", email = "you@example.com" }]
license = "MIT"