Don't think you can, but a workaround on the top of my head would be to
fork() a separate process and kill the child process if not returned in
certain time. Of course this is extra, but don't think there is a way
through DBI.
Ilya Sterin
-----Original Message-----
From: Molina, Gerardo [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 20, 2001 7:49 PM
To: '[EMAIL PROTECTED]'
Subject: Timeout parameter for dbi->connect?
Is there a way to specify a timeout parameter for a dbi->connect call? I
know TNS has a timeout limit, but is there a way to specify a timeout in the
connect call? This is so that the script doesn't have to wait forever for a
response from the connect call.
TIA,
Gerardo