how to timeout a db connect

From: Date: Mon, 04 Nov 2002 17:34:46 +0000
Subject: how to timeout a db connect
Groups: php.db 
Request: Send a blank email to php-db+get-22972@lists.php.net to get a copy of this message
Is there any way to control the timeout of a pg_connect() call? I.e., if the connect doesn't succeed in N seconds, abort immediately, and fall through to the next line of code. I've got my app configured to go into "maintenance mode" when the db connect fails... only problem is, that takes too long. I'd like to manually specify a lower connect timeout. Is this possible? -- Alex Howansky Wankwood Associates http://www.wankwood.com/

« previous php.db (#22972) next »