If it's opening new connections every time I'd look into why it's closing the connections in the first place.
With 'Max' set to 2, $pool->get() should return undef when you try to exceed 2 connections.
Set up a test where you attempt to get 3 resources simultaneously and watch the database logs to see what's going on with the connections.
In reply to Re^3: Connection Pooling
by onelesd
in thread Connection Pooling
by muk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |