You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If multiple goroutines call RegisterTLSConfig Go can panic because the internal map is not guarded: tlsConfigRegister[key] = config
Affects all versions of driver including latest SHA as of today.
Suggested fixes:
Guard the map, or
Document that this func isn't thread-safe and caller should only call it once
Best is probably option 1 and then document that callers shouldn't (and don't need to) re-register the same TLS config more than once (unless, of course, certs change).
The text was updated successfully, but these errors were encountered:
If multiple goroutines call
RegisterTLSConfig
Go can panic because the internal map is not guarded:tlsConfigRegister[key] = config
Affects all versions of driver including latest SHA as of today.
Suggested fixes:
Best is probably option 1 and then document that callers shouldn't (and don't need to) re-register the same TLS config more than once (unless, of course, certs change).
The text was updated successfully, but these errors were encountered: