Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When no timeout is set for BRPOP, the process cannot be closed by pressing CTRL+C. #3427

Open
r3x5ur opened this issue Nov 8, 2024 · 1 comment

Comments

@r3x5ur
Copy link

r3x5ur commented Nov 8, 2024

Version: What redis-py and what redis version is the issue happening on?
redis 5.2.0
Platform: What platform / version? (For example Python 3.5.1 on Windows 7 / Ubuntu 15.10 / Azure)
Windows 10 Python 3.9.8
Description: Description of your issue, stack traces from errors and code that reproduces the issue

test code

import redis

host = '127.0.0.1'
port = 3519
password = 'E4E93b'

rds = redis.Redis(host=host, port=port, password=password, decode_responses=True)

# rds.lpush('task:queue', 'test task')

print(rds.brpop('task:queue'))

cmd: python test.py

The terminal will get stuck directly and cannot interrupt the process by pressing Ctrl+C

@r3x5ur
Copy link
Author

r3x5ur commented Nov 8, 2024

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant