Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: Connection Pooling

by onelesd (Pilgrim)
on Oct 28, 2011 at 21:46 UTC ( #934521=note: print w/replies, xml ) Need Help??


in reply to Re^2: Connection Pooling
in thread Connection Pooling

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://934521]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2018-11-18 14:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My code is most likely broken because:
















    Results (205 votes). Check out past polls.

    Notices?