From ef9171626ce9fffa78693fe5326b93b0337bfb06 Mon Sep 17 00:00:00 2001 From: starkillerOG Date: Mon, 9 Dec 2024 22:16:21 +0100 Subject: [PATCH] Also set aiohttp sock_read timeout --- reolink_aio/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reolink_aio/api.py b/reolink_aio/api.py index 127861f..1ecf20e 100644 --- a/reolink_aio/api.py +++ b/reolink_aio/api.py @@ -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