Problems? Is your data what you think it is? | |
PerlMonks |
Re: DBIx::Connector timeout?by kcott (Archbishop) |
on Aug 02, 2013 at 06:19 UTC ( [id://1047548]=note: print w/replies, xml ) | Need Help?? |
While the short answer to this is no, I get the impression (based on the wording of your question) that there's some underlying assumption you're making that may be wrong. If you have code like:
DBIx::Connector may need to reconnect. It doesn't keep a count of how many times it's encountered this situation nor does it keep track of how long it's spent doing this. You won't get an error saying something like: "Sorry, that's the nth time I've encountered run() and needed to reconnect so I won't be trying on this or any subsequent occasions." DBIx::Connector uses DBI's connect() method with the same arguments you pass to new(), i.e.
So, if you're familiar with DBI, the actual process of connecting is the same as you're used to. See Connection Modes, in the DBIx::Connector documentation, for information on when connection checks are made and how reconnecting (and possibly code re-execution) is handled. -- Ken
In Section
Seekers of Perl Wisdom
|
|