-
Type: Bug
-
Resolution: Fixed
-
Priority: Critical - P2
-
Affects Version/s: 0.0.3
-
Component/s: Connections
-
None
In the connection pool logic, when we attempt to dial a new connection we first acquire a permit from the semaphore which represents the maximum number of connections we can dial at a time. If the dialing of the new connection returns an error, we do not release that permit which will permanently prevent the pool from being closed gracefully. To fix this problem, release the semaphore permit when an error from dialing a connection occurs.