I have a webserver running a Node.js v1.0.10 that connects to a SA16.
So, every page that needs data from the DB, opens a new connection and closes it at the end.
If I call more than one page at same time, I'll have more than one connection to the database.
The problem starts when I have multiple pages running at the same time and the first one calls the "connection.disconnect" method. At this time, all other connections are affected and all other pages get an connection error. It seems the connection.disconnect closes all opened connections.
I´m creating a new connection in every single page like the GitHub example:
What am I doing wrong?
Thanks for your time!
asked 27 Jun '16, 09:47
Version 1.0.11 (just published to npm) should fix this issue.
answered 30 Jun '16, 08:45