asynch icon indicating copy to clipboard operation
asynch copied to clipboard

Connection pool initialization

Open AlexEbral opened this issue 2 years ago • 3 comments

In initialize function there is condition while 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: ?

AlexEbral avatar May 25 '23 10:05 AlexEbral

I confirm that the maxsize is never reached.

ali-behjati avatar Aug 23 '23 07:08 ali-behjati

Fix here: https://github.com/long2ice/asynch/pull/97

gnomeby avatar Mar 21 '24 20:03 gnomeby