node-express-passport-mysql icon indicating copy to clipboard operation
node-express-passport-mysql copied to clipboard

DB close connection

Open nirLebo opened this issue 8 years ago • 1 comments

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.

nirLebo avatar Mar 09 '16 18:03 nirLebo

Please create a pull request

vikasjson avatar Sep 25 '16 07:09 vikasjson