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

Connection.close error this.agent.sockets.forEach is not a function #319

Open
rmey opened this issue Nov 22, 2016 · 1 comment
Open

Connection.close error this.agent.sockets.forEach is not a function #319

rmey opened this issue Nov 22, 2016 · 1 comment

Comments

@rmey
Copy link

rmey commented Nov 22, 2016

Hello,
even Connection.close is not really required, I would like to be sure that all resources are freed, when db access is not longer used. In my use case I will create a connection every 10 minutes to write sensor data into the db.
I get the following error node v6.9.1
/node_modules/cradle/lib/cradle.js:173 this.agent.sockets.forEach(function (socket) { ^ TypeError: this.agent.sockets.forEach is not a function at Connection.cradle.Connection.close (.../node_modules/cradle/lib/cradle.js:173:22)
My dependency tree is posted here:
http://pastebin.com/ZcvLjgqP

Best Regards,
René

@tomanwalker
Copy link

#310 (comment)

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