pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen <private@xxxxxxx.com>
To: pgsql-php@postgresql.org
Subject: pg_connect timeout ignored
Date: Mon, 23 Feb 2004 16:36:33 -0500
Message-ID: <Vgu_b.47533$nI7.29326@nntp-post.primus.ca> (raw)

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,







view thread (2+ messages)  latest in thread

Message-ID: <Vgu_b.47533$nI7.29326@nntp-post.primus.ca>
Permalink:  ../Vgu_b.47533$nI7.29326@nntp-post.primus.ca/
Also on:    postgresql.org/message-id/Vgu_b.47533$nI7.29326@nntp-post.primus.ca

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: private@xxxxxxx.com
  Subject: Re: pg_connect timeout ignored
  In-Reply-To: <Vgu_b.47533$nI7.29326@nntp-post.primus.ca>
  References: <Vgu_b.47533$nI7.29326@nntp-post.primus.ca>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox