Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Handle DBI connection lost

by gsiems (Deacon)
on Feb 24, 2017 at 19:14 UTC ( [id://1182750]=note: print w/replies, xml ) Need Help??


in reply to Handle DBI connection lost

I've been pretty happy using DBIx::Connector.

Replies are listed 'Best First'.
Re^2: Handle DBI connection lost
by bash (Scribe) on Feb 27, 2017 at 12:47 UTC
    Yep, i've looked at this module. Unfortunately it goes by way 1, i.e. ping'ing server before every request.

      You sure?

      "In fixup mode, DBIx::Connector executes the block without pinging the database. But in the event the block throws an exception, if DBIx::Connector finds that the database handle is no longer connected, it will reconnect to the database and re-execute the block."
        Oh... sorry. I missed to say that we have many sql related code and main idea is to substitute DBI $dbh with something other that handle reconnection with the same API.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2024-04-26 07:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found