diff --git a/src/dapla_pseudo/v1/client.py b/src/dapla_pseudo/v1/client.py index a26c849..523a3d6 100644 --- a/src/dapla_pseudo/v1/client.py +++ b/src/dapla_pseudo/v1/client.py @@ -10,6 +10,7 @@ import requests from aiohttp import ClientResponse from aiohttp import ClientSession +from aiohttp import ClientTimeout from aiohttp import TCPConnector from aiohttp_retry import ExponentialRetry from aiohttp_retry import RetryClient @@ -105,7 +106,9 @@ async def _post( return request.name, data, metadata - aio_session = ClientSession(connector=TCPConnector(limit=200), timeout=timeout) + aio_session = ClientSession( + connector=TCPConnector(limit=200), timeout=ClientTimeout(total=10 * 60) + ) async with RetryClient( client_session=aio_session, retry_options=ExponentialRetry(