Re: DiverManager.getConnection hangs - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: DiverManager.getConnection hangs
Date
Msg-id 45F9D0BF.5000802@opencloud.com
Whole thread Raw
In response to Re: DiverManager.getConnection hangs  (Massimo Ferrari <massimo.ferrari@rcfmedia.net>)
List 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

pgsql-jdbc by date:

Previous
From: Massimo Ferrari
Date:
Subject: Re: DiverManager.getConnection hangs
Next
From: Randall Smith
Date:
Subject: query manipulation