[turba] Infrequent DB connect error

Jan Schneider jan at horde.org
Wed Oct 18 04:50:53 PDT 2006


Zitat von "Kamanhalli, Pavan S (STSD)" <pavan.kamanhalli at hp.com>:

> Hi All,
>          I get this error "A fatal error has occurred : DB Error:
> connect failed" infrequently even though postgres is running and it is
> accepting connections on localhost. Sometimes I get the INBOX and
> sometime I get this error. I think it might be because,
>
> 	1. The php which is trying to connect to postgres is timing out
> on some occasions. On some occasions it might succeed hence we may get
> the inbox page.
>
>            Is there any way to increase the timeout period of accessing
> the database. If my inference is not correct kindly tell me how can I
> approach it.

Probably, since pg_connect supports setting a timeout. Check the PEAR  
DB documentation on how to pass this parameter.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the turba mailing list