Skip to content

Commit

Permalink
Also set aiohttp sock_read timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
starkillerOG committed Dec 9, 2024
1 parent c3d461a commit ef91716
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reolink_aio/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def __init__(
self._token: Optional[str] = None
self._lease_time: Optional[datetime] = None
# Connection session
self._timeout: aiohttp.ClientTimeout = aiohttp.ClientTimeout(total=timeout, connect=timeout, sock_connect=timeout)
self._timeout: aiohttp.ClientTimeout = aiohttp.ClientTimeout(total=timeout, connect=timeout, sock_connect=timeout, sock_read=timeout)
self._aiohttp_session_internall: bool = True
if aiohttp_get_session_callback is not None:
self._get_aiohttp_session = aiohttp_get_session_callback
Expand Down

0 comments on commit ef91716

Please sign in to comment.