-
Notifications
You must be signed in to change notification settings - Fork 73
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
server shutdown mandatory? #97
Comments
Well it would seem that i overlooked that a process is created with the server that persists after the python program ends, so i couldn't start a new server on the same port because there was already one running. It feels a little counter intuitive that a server started by a python script would not end with its termination. I use this for integration testing of an application so my tests starts and ends the server, so maybe it's only my use-case. |
It doesn't shutdown the server process if there active connections to the redis server process that where not created by the current process. If all activity to the redis server is through redislite Redis or StrictRedis classes then the last process with a connection to the redis server will terminate the redis server. If however a connection is made without going through redislite it's possible for the redis-server process to remain running if that connection is still active when the process that has redislite running terminates. |
Okay, that sounds fine. My use case being exactly connecting without going through redislite so it was confusing for me. My suggestion was merely to add a little note to the doc, but if you don't feel like it, you can close this issue i won't mind :) |
Hi, i've been playing around with your server with this little script:
And i was surprised i couldn't launch the same script twice in a row or else i'd get this error:
After some testing i found that if i add
at the end of my script i can run it over and over.
I don't know how much of a bug this is but i couldn't find this in your doc, maybe at least say we need to shutdown manually.
here's some system specs
redislite==3.0.271
OS X El Capitan 10.11.3
Python 2.7.11
Have a nice day
The text was updated successfully, but these errors were encountered: