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

Publish/subscribe leaves server running #116

Open
jpupu opened this issue May 18, 2018 · 0 comments
Open

Publish/subscribe leaves server running #116

jpupu opened this issue May 18, 2018 · 0 comments

Comments

@jpupu
Copy link

jpupu commented May 18, 2018

I would imagine the below code should shutdown the server after it's done. Instead the server process is left running. Leaving out either the subscribe or the publish results in the server shutting down cleanly.

import redislite
r = redislite.StrictRedis()
p = r.pubsub()
p.subscribe("chan")
r.publish("chan", "")
p.close()

(Tested with version 3.2.311)

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