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

[feature] PubSub subscribe timeout #7

Open
akaspin opened this issue Apr 4, 2012 · 1 comment
Open

[feature] PubSub subscribe timeout #7

akaspin opened this issue Apr 4, 2012 · 1 comment

Comments

@akaspin
Copy link

akaspin commented Apr 4, 2012

Is it possible to add a timeout in subscribe and psubscribe? It would be very convenient for short-lived channels.

@informatikr
Copy link
Owner

Hi Alexander,

sorry for my late reply, I did not have time to look into your feature request.

Can you describe the use case you have in mind a little further? Do you want to have one timeout for the entire pubSub call, to avoid blocking forever when no client publishes? Or would you like to assign individual timeouts to different channels/patterns?

I think for the former I have a relatively simple solution, but the latter wouldn't be so easy. In my opinion the whole PubSub feature of Redis is a bit messy, semantically speaking. I am absolutely open for API suggestions here, to provide nicer semantics than vanilla Redis.

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

2 participants