Hello.
My Node application always exits with the error below. It seems to be triggered by the net_wait_timeout setting, in MySQL.
events.js:141
throw er; // Unhandled 'error' event
^
Error: Connection lost: The server closed the connection.
at Protocol.end (/home/federico/mobile-sync-backend/node_modules/mysql/lib/protocol/Protocol.js:109:13)
at Socket.<anonymous> (/home/federico/mobile-sync-backend/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 doNTCallback2 (node.js:441:9)
at process._tickCallback (node.js:355:17)