change pool to 10
This commit is contained in:
parent
d4981b23de
commit
ce53d0d308
@ -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(
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user