Skip to content

Commit 3cf820f

Browse files
committed
Changed clean_health_check_response timeout to the connection's socket_timeout
1 parent c03ef63 commit 3cf820f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redis/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1370,7 +1370,7 @@ def clean_health_check_responses(self):
13701370
ttl = 10
13711371
conn = self.connection
13721372
while self.health_check_response_counter > 0 and ttl > 0:
1373-
if self._execute(conn, conn.can_read, timeout=1):
1373+
if self._execute(conn, conn.can_read, timeout=conn.socket_timeout):
13741374
response = self._execute(conn, conn.read_response)
13751375
if self.is_health_check_response(response):
13761376
self.health_check_response_counter -= 1

0 commit comments

Comments
 (0)