-
-
Notifications
You must be signed in to change notification settings - Fork 180
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
data race in pool.go #488
Comments
Hello, thank you for your contribution. |
I'm not sure any race is okay. Please see: https://groups.google.com/g/golang-nuts/c/EHHMCdcenc8 and https://groups.google.com/g/golang-nuts/c/MB1QmhDd_Rk |
It is common thing https://en.wikipedia.org/wiki/Double-checked_locking |
Describe the bug
pool.go has a race condition around p.conns
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Screenshots
Applicable code
System info
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: