-
-
Notifications
You must be signed in to change notification settings - Fork 405
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
nil-pointer dereference in getConn #1949
Comments
Seems like nil conection returned from the pool, but have no idea how it's possible |
It looks like there is a code path that might allow both the Lines 172 to 174 in e8d0e95
If there are more dial errors than the "pool size" then it will return the last dial error. Lines 215 to 220 in e8d0e95
But if the last dial error is nil for whatever reason, then this function could return Looking at this, this seems to be the only way that you could get a nil connection without an error path. But I don't see an immediate way that that error could be nil under those circumstances. |
Found a |
Have no idea how to handle or investigate this panic.
The text was updated successfully, but these errors were encountered: