X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 1CF72D1B994 for ; Mon, 23 Feb 2004 21:48:56 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 49709-09 for ; Mon, 23 Feb 2004 17:48:54 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id A2074D1B91C for ; Mon, 23 Feb 2004 17:48:52 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id i1NLmq1Y013130 for ; Mon, 23 Feb 2004 21:48:52 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i1NLaPGA011512 for pgsql-php@postgresql.org; Mon, 23 Feb 2004 21:36:25 GMT From: "Stephen" X-Newsgroups: comp.databases.postgresql.interfaces.php Subject: pg_connect timeout ignored Lines: 16 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: Date: Mon, 23 Feb 2004 16:36:33 -0500 X-Complaints-To: news@primus.ca Organization: Primus Canada To: pgsql-php@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200402/47 X-Sequence-Number: 2595 I'm testing the connect_timeout option in pg_connect but the library seems to ignore it. I set the pg_connect to connect to an invalid host IP and set the connect_timeout=8 but the function returns in 30 seconds or more. $DB = pg_connect(host=169.2.2.22 user=postgres database=xyz connect_timeout=8); I'm running Redhat 9 on Postgresql 7.4 and php-pgsql-4.2.2-17.2. Any idea how the connect_timeout option works on PHP Pgsql? Thanks,