Re: Connection attempt hangs when server is unresponsive - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: Connection attempt hangs when server is unresponsive
Date
Msg-id 4757273D.3090307@opencloud.com
Whole thread Raw
In response to Connection attempt hangs when server is unresponsive  ("Woody Woodring" <george.woodring@iglass.net>)
List pgsql-jdbc
Woody Woodring wrote:

> Since createDataSource is synchronized we traced them to the following
> thread that had them blocked:
>
>          at java.net.PlainSocketImpl.socketConnect(Native Method)

That's an OS-level method, if it blocks and you have not set
loginTimeout there is not much the driver can do.

Maybe you should set loginTimeout? (It is more expensive as it spawns
extra threads to deal with timeouts in this sort of case, though)

-O

pgsql-jdbc by date:

Previous
From: Kris Jurka
Date:
Subject: Re: JDBC XA Support and Sample code?
Next
From: "Henry B. Hotz"
Date:
Subject: Re: JDBC and GSSAPI/Krb5