Skip to content

Commit 9559454

Browse files
authored
Update connection.py
1 parent 8f2276e commit 9559454

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

redis/asyncio/connection.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,9 @@ async def on_connect(self) -> None:
350350
self._parser.on_connect(self)
351351
if len(auth_args) == 1:
352352
auth_args = ["default", auth_args[0]]
353-
await self.send_command("HELLO", self.protocol, "AUTH", *auth_args)
353+
# avoid checking health here -- PING will fail if we try
354+
# to check the health prior to the AUTH
355+
await self.send_command("HELLO", self.protocol, "AUTH", *auth_args, check_health=False)
354356
response = await self.read_response()
355357
if response.get(b"proto") != int(self.protocol) and response.get(
356358
"proto"

0 commit comments

Comments
 (0)