-
Notifications
You must be signed in to change notification settings - Fork 30
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
Closing DB connection #19
Comments
Huh, I hadn't even thought about it. Good point. I don't think you can do that now, ...
Then just set your mongous variable to null. |
I added mongous.prototype.close = function(){ con.c.end() } at line 233 but I get the node error: "node.js:201 |
Hmm, I just tried it, and you are right, I get an error too. If I use con.c.destroy() I also get an error. It definitely should be implemented, though. Why do you need it, out of curiosity? |
I want to use node for an program that is not a webserver. The application will access and upload information them the process will terminate. The connection to mongo is a prerequisite for this I think. My work around is to use a chron module in node so ending the .js script is no longer required. |
How can I terminate the DB connection and all the instances of mongous functions?
The text was updated successfully, but these errors were encountered: