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
After the patch ConnectionPool.getNextConnection() does not return
(nil, nil). It always return a connection or an error.
The check Connection.ConnectedNow() does not have sence because
the connection may be closed right after the call. The code just
complicates the logic and does not protect against anything.
A chain of two atomic operations IsEmpty() + GetNextConnection()
wrong because it leads too a race condition.
Part of #208
0 commit comments