setting a timeout on ocilogon
| From: | Jos Juffermans | Date: | Thu, 17 Mar 2005 17:06:54 +0000 |
| Subject: | setting a timeout on ocilogon | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-39020@lists.php.net to get a copy of this message | ||
Hi,
I have a script that connects to a database which is in another country and
connected to our network thru a VPN.
The script tries to connect using ocilogon() and checks if a connection is
established. If not, it presents the visitor with a nice errorpage.
However, ocilogon takes a very long time before it returns control to the
script (ie aborts the connection) if it fails. I would like ocilogon to quit
trying after eg 10 seconds. How can I do that?
Rgds,
Jos