-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
RuntimeError: readuntil() #2585
Comments
The reason this doesn't work is because the fix in #2540 synchronises concurrency at the client level, but each individual connection is not coroutine-safe. If you use
instead of
Does that resolve your issue? Let me know if there are any other issues. |
Is there documentation about this difference? If not, it will be good to add some warning about concurrency. Here, probably: https://redis.readthedocs.io/en/stable/connections.html#redis.connection.Connection.send_command ? Or rename |
@Vivanov98, you’re right! Awesome! Thank you for looking into and taking the time to reply. 🙏 |
Version:
4.5.0
, works in4.3.5
Platform:
Python 3.10 on MacOS
Hi 👋
I'm facing the same issue here with 4.5.0 that was successfully resolved with #2540. While the example of @Tiendil in #2450 works with 4.5.0 now, mine does not - yet works with 4.3.5.
I'm running an instance of Tile38 a service implementing the Redis protocol here and am sending custom commands via
send_command
.It errors with
Whereas with 4.3.5 I see the expected:
Appreciate your work here!
The text was updated successfully, but these errors were encountered: