Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
`self.created` was never being incremented, therefore `self.created < self.max_size` always evaluated to true. We can therefore drop the two fields from the struct, and also drop two conditions from `get_async`, all without changing the behaviour. Now this makes it obvious that the "pool" doesn't really behave as a pool. Every time a server is requested (consuming 5 file descriptors and at least one thread), a new one is created and added to the end of the "pool". Recycled servers are being reused indeed, but the pool grows over its max size easily, eventually hitting the process file descriptor limit.
- Loading branch information