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

get_msgs hangs due to lack of timeout #1029

Open
BrenBarn opened this issue Jul 23, 2024 · 0 comments
Open

get_msgs hangs due to lack of timeout #1029

BrenBarn opened this issue Jul 23, 2024 · 0 comments

Comments

@BrenBarn
Copy link

The documentation for the get_msgs method of a channel says that it gets all messages that are currently ready. But actually it hangs (at least with a blocking client) because it calls get_msg with no timeout, which means the call to get_msg just blocks with no messages available. Before v7.0, a timeout of zero was passed.

I think just adding a timeout=0 argument here would fix it, but I haven't followed the refactorings that took place over the last few versions so I'm not sure.

I came across this because I was trying to revisit this issue to see if it was actually fixed in 8.x. It seems the issue may have been present for some time. Maybe I'm the only one still trying to use the sync/blocking interface. . . :-)

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