Skip site navigation (1) Skip section navigation (2)

pg_connect timeout ignored

From: "Stephen" <private(at)xxxxxxx(dot)com>
To: pgsql-php(at)postgresql(dot)org
Subject: pg_connect timeout ignored
Date: 2004-02-23 21:36:33
Message-ID: Vgu_b.47533$ (view raw, whole thread or download thread mbox)
Lists: pgsql-php
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= user=postgres database=xyz

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?



pgsql-php by date

Next:From: Adam AlkinsDate: 2004-02-25 16:03:28
Subject: Re: [PHP] phpBB 2.2 and PostgreSQL support
Previous:From: Birzan George CristianDate: 2004-02-23 15:48:20
Subject: Re: phpBB 2.2 and PostgreSQL support

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group