pg_connect timeout ignored

Поиск
Список
Период
Сортировка
От Stephen
Тема pg_connect timeout ignored
Дата
Msg-id Vgu_b.47533$nI7.29326@nntp-post.primus.ca
обсуждение исходный текст
Список 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=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,





В списке pgsql-php по дате отправления:

Предыдущее
От: "scott.marlowe"
Дата:
Сообщение: Re: Too many clients
Следующее
От: Harry Broomhall
Дата:
Сообщение: Re: [GENERAL] phpBB 2.2 and PostgreSQL support