-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Connection pool error handling? #453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
hexacyanide, I don't know if this is exactly what you need but:
Please note though that node-mysql already manages the connection cleanup itself, so you should not need to do that by yourself. |
I would create a connection pool and come back a few days later to find a disconnect, although it hasn't happened since I installed the latest build. Not sure if it'll still happen, will report if it does. |
Reopen if it does. |
Hi hexacyanide, It looks like you were/are having a similar problem to me. I've been creating a connection pool and coming back a few days later to find a disconnect (See #528) and while trying to resolve this problem. I attempted to add handlers onto created connections to give me more details about what was going on and ran into a problem when following the documentation where by I was receiving the error "TypeError: Object # has no method 'on'" when trying to add listeners to the on connect event of the pool. (See #533) Did you manage to resolve your problem? |
Yes, the problem ceased after I updated the module. Now, it automatically reconnects. |
@hexacyanide Can you please share your code for this part, cause I have the same problem? |
@BenScarberry, the issue @hexacyanide was having was doing |
It appears I can't attach error handling to pools, so how are connection pool disconnects handled?
The text was updated successfully, but these errors were encountered: