You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.
await pubsub.subscribe(self.channel)
try:
start_time = datetime.datetime.now()
async with async_timeout.timeout(blocking_timeout):
while True:
message = await pubsub.get_message(ignore_subscribe_messages=True, timeout=blocking_timeout)
end_time = datetime.datetime.now()
logger.info(f"{str(message)},{blocking_timeout}==={end_time-start_time}")
if message is not None: break
except asyncio.TimeoutError:
pass
i set get_message's blocking_timeout equals async_timeout 's blocking_timeout
but i found when they are similar or equal , async_timeout.timeout will not works it will always run util get a message
Describe the bug
i set get_message's blocking_timeout equals async_timeout 's blocking_timeout
but i found when they are similar or equal , async_timeout.timeout will not works it will always run util get a message
To Reproduce
python=3.10.2
aioredis=2.10.1
async-timeout = 4.0.2
mycode
Expected behavior
catch timeouterror
Logs/tracebacks
Python Version
3.10.2
aioredis Version
4.0.2
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: