diff --git a/common_lib/utils/http_client.py b/common_lib/utils/http_client.py index ed2ddf1..db23dc1 100644 --- a/common_lib/utils/http_client.py +++ b/common_lib/utils/http_client.py @@ -1,5 +1,5 @@ import httpx -from .ssl_transport import ssl_transport +# from .ssl_transport import ssl_transport # Ограничения пула соединений limits = httpx.Limits(max_connections=1000, max_keepalive_connections=200) @@ -9,7 +9,7 @@ timeout = httpx.Timeout(connect=5.0, read=10.0, write=5.0, pool=10.0) # Глобальный клиент client = httpx.AsyncClient( - transport=ssl_transport, + # transport=ssl_transport, limits=limits, timeout=timeout, ) diff --git a/common_lib/utils/ssl_transport.py b/common_lib/utils/ssl_transport.py index 624608c..3acf212 100644 --- a/common_lib/utils/ssl_transport.py +++ b/common_lib/utils/ssl_transport.py @@ -1,8 +1,8 @@ -import ssl -import httpx -from config import settings +# import ssl +# import httpx +# 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) +# 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, retries=2) +# ssl_transport = httpx.AsyncHTTPTransport(verify=ctx, http2=False, retries=2) diff --git a/pyproject.toml b/pyproject.toml index 4cd4ea6..de86b2d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "common-lib" -version = "0.0.40" +version = "0.0.41" description = "Библиотека общих компонентов для микросервисов yobble" authors = [{ name = "cheykrym", email = "you@example.com" }] license = "MIT"