manjeshpv / node-express-passport-mysql

Login Express + Passport + MySQL
https://github.com/manjeshpv/awesome-sandbox
404 stars 211 forks source link

DB close connection #6

Open nirLebo opened 8 years ago

nirLebo commented 8 years ago

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 commented 8 years ago

Please create a pull request