Connections are never returned to the pool when maxIdle is set to any value
Status: Inactive
Brought to you by:
grro
In NonBlockingConnectionPool.unregister(), the following code is wrong :
// .. and return it to the pool only if max idle size is not reached
if ((maxIdle.get() != Integer.MAX_VALUE) || (pool.getNumIdle() >= maxIdle.get()))
should be :
if ((maxIdle.get() >= Integer.MAX_VALUE) || (pool.getNumIdle() >= maxIdle.get()))