On 04/17/10 14:27, Jiri Pavlovsky wrote:
Hello,

I'm trying to prestart db connection. But Apache::DBI->connect_on_init
is not working. Gives no error, but db connection is not made.
Setting $Apache::DBI::DEBUG = 2 indicates that ChildInitHandler runs.

I tried to create my custom ChildInitHandler and start db connection
from it but it also has no effect.
It also seems as if the handler was silently aborted after the connect
call.
I inserted debugging print before and after the connect call. In the
Postgres log I can see a connection made and immediately terminated.


So now I'm quite helpless as what to do.


I use Apache::DBI and connect_on_init.
What are your full details? Using startup.pl?
what values for initial connection?

Reply via email to