brscvs has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I have an old daemon code that connects to dbi(sqlite) in the beginning of the file and there is an infinite loop at bottom.
So my question is:
In the subroutines should I connect and disconnect the database every time , can connection gone ? if it does daemon fails. What is the best practice for this ?I appreciate any help
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: dbi connection daemon process
by 1nickt (Canon) on Jan 19, 2016 at 08:01 UTC |