in reply to Re^2: Perl Oracle Database Connections remain ESTABLISHED!!
in thread Perl Oracle Database Connections remain ESTABLISHED!!
Incidentally, your connect_db() sub will always sleep for at least 1 second, even if it connects right away. That's probably not what you want.
Ultimately, I recommend you get rid of this code and use $dbh->connect_cached() instead. It is similar to Apache::DBI, but doesn't prevent disconnects.
|
|---|