Re: DiverManager.getConnection hangs

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: Massimo Ferrari <massimo(dot)ferrari(at)rcfmedia(dot)net>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: DiverManager.getConnection hangs
Date: 2007-03-15 23:03:27
Message-ID: 45F9D0BF.5000802@opencloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Massimo Ferrari wrote:
> Mhhh it was a firewall issue!
>
> Just a pity that even if I turned the driver's loggin on, there was no
> message.

If the firewall was completely dropping connections then it'll sit there
trying to connect and eventually timeout, but it may take some time.

You could set a connect timeout (there's a jdbc URL parameter for it) if
you want a faster failure.

-O

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Randall Smith 2007-03-19 20:19:51 query manipulation
Previous Message Massimo Ferrari 2007-03-15 22:04:20 Re: DiverManager.getConnection hangs