Alternately, if you really wanted to, you could create $dbh outside of your while (CGI::Fast->new) { ... } loop,
I would really avoid that in a FastCGI context. A clean disconnect should also either commit or rollback all transactions still open, so every HTTP request sees a clean database connection with no outstanding transactions or other side-effects of a previous request.
Alexander
In reply to Re^2: FastCGI DBI connect/disconnect
by afoken
in thread FastCGI DBI connect/disconnect
by luxs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |