Skip to content

Commit

Permalink
fix timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
mallport committed Nov 26, 2024
1 parent 83084ee commit 0e963f6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/dapla_pseudo/v1/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 0e963f6

Please sign in to comment.