Manage minimumIdle at value 0
This allows using the pool with minimumIdle = 0 and makes the _shouldCreateMoreConnections function easier to read.
Additionally, the variable that holds the reaping timer should be set to null after it’s cleared. This prevents potential issues that block the release of unused connections, even after their timeOut has elapsed. I’m fixing it here because, in some tests, race conditions can leave connections open when they shouldn’t be.
This close #329 and #331
合并状态:未合并 0 条评论