Skip to content

Commit d1ee90e

Browse files
committed
pool: Add another level of indirection to the pool internal logic
Make internal connection pool queue reference a new intermediate object -- PoolConnectionHolder -- instead of Connections directly. PoolConnectionHolder fully encapsulates the management of one connection: * connection logic; * handling closed connections; * handling connections that exceeded max-queries quota; etc. The new logic guarantees that old and new connections are always added back to the pool (1), removes a deadlock in pool.acquire (2), uses a LIFO queue to take advantage of "min_size" pool parameter (3).
1 parent 3bf6103 commit d1ee90e

File tree

2 files changed

+261
-125
lines changed

2 files changed

+261
-125
lines changed

0 commit comments

Comments
 (0)