CodeFoodPixels / node-promise-mysql

A wrapper for mysqljs/mysql that wraps function calls with Bluebird promises.
MIT License
338 stars 63 forks source link

Connection overload possible. #120

Closed dannyhpy closed 5 years ago

dannyhpy commented 5 years ago

When the module losts the connection to the actual database, it creates another one, that's okay. But we can't use it.

That creates connection overload when you want to handle the disconnect yourself to recreate another one with connection.on('error', ...) and creating another one.

I hope your understood the issue. Thank you.