summaryrefslogtreecommitdiff
path: root/redis/asyncio
diff options
context:
space:
mode:
authorKristján Valur Jónsson <sweskman@gmail.com>2023-05-10 10:25:41 +0000
committerGitHub <noreply@github.com>2023-05-10 13:25:41 +0300
commit35b7e09a57a1b7e2931d90e4b13858b68cee97cf (patch)
tree3f96c1a979d5b26f0813cabbed37eacdcd9b47bc /redis/asyncio
parentf056118224e851915922de02ec40f2d16c9e4dd7 (diff)
downloadredis-py-35b7e09a57a1b7e2931d90e4b13858b68cee97cf.tar.gz
Kristjan/issue #2754: Add missing argument to SentinelManagedConnection.read_response() (#2756)
* Increase timeout for a test which would hang completely if failing. Timeouts in virtualized CI backends can occasionally fail if too short. * add "disconnect_on_error" argument to SentinelManagedConnection * update Changes * lint
Diffstat (limited to 'redis/asyncio')
-rw-r--r--redis/asyncio/sentinel.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/redis/asyncio/sentinel.py b/redis/asyncio/sentinel.py
index 9147ed8..501e234 100644
--- a/redis/asyncio/sentinel.py
+++ b/redis/asyncio/sentinel.py
@@ -67,11 +67,14 @@ class SentinelManagedConnection(Connection):
self,
disable_decoding: bool = False,
timeout: Optional[float] = None,
+ *,
+ disconnect_on_error: Optional[float] = True,
):
try:
return await super().read_response(
disable_decoding=disable_decoding,
timeout=timeout,
+ disconnect_on_error=disconnect_on_error,
)
except ReadOnlyError:
if self.connection_pool.is_master: