Skip to content

Commit

Permalink
increase timeout to max 12h
Browse files Browse the repository at this point in the history
  • Loading branch information
mib1185 committed Jan 5, 2025
1 parent 3aa4674 commit b78d19f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/synology_dsm/synology_dsm.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,9 @@ async def _execute_request(
part.headers.add(hdrs.CONTENT_TYPE, "application/octet-stream")

response = await self._session.post(
url_encoded, timeout=self._aiohttp_timeout, data=mp
url_encoded,
timeout=ClientTimeout(connect=10.0, total=43200.0),
data=mp,
)
elif method == "POST":
data = {}
Expand Down

0 comments on commit b78d19f

Please sign in to comment.