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

DB close connection #6

Open
nirLebo opened this issue Mar 9, 2016 · 1 comment
Open

DB close connection #6

nirLebo opened this issue Mar 9, 2016 · 1 comment

Comments

@nirLebo
Copy link

nirLebo commented Mar 9, 2016

Hi,

Thank you for your project it help me a lot !
I dont know if you still maintain the project but i use it today and i got this error:

Error: Connection lost: The server closed the connection.
at Protocol.end (C:\wamp\www\Test_projects\fb\node-express-passport-mysql-ma
ster\node_modules\mysql\lib\protocol\Protocol.js:109:13)
at Socket. (C:\wamp\www\Test_projects\fb\node-express-passport-my
sql-master\node_modules\mysql\lib\Connection.js:102:28)
at emitNone (events.js:72:20)
at Socket.emit (events.js:166:7)
at endReadableNT (_stream_readable.js:905:12)
at nextTickCallbackWith2Args (node.js:474:9)
at process._tickCallback (node.js:388:17)

I solved it by closing the connection after every db request.

@vikasjson
Copy link

Please create a pull request

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