In initialize function there is conditionwhile self.size < self.minsize:
where self.size is self.freesize + len(self._used) and this leads to the fact that there will never be more than minsize connections in the dequeue, and maxsize connections count never be reached.
May be there should be condition like this:
while self.freesize < self.minsize:
?
In initialize function there is condition
while self.size < self.minsize:
whereself.size
isself.freesize + len(self._used)
and this leads to the fact that there will never be more thanminsize
connections in the dequeue, andmaxsize
connections count never be reached. May be there should be condition like this:while self.freesize < self.minsize:
?