long2ice / asynch

An asyncio ClickHouse Python Driver with native (TCP) interface support.

Home Page:https://github.com/long2ice/asynch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Connection pool initialization

AlexEbral opened this issue · 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:
?

I confirm that the maxsize is never reached.