Re: Connection attempt hangs when server is unresponsive

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: Connection attempt hangs when server is unresponsive
Дата
Msg-id 4757273D.3090307@opencloud.com
обсуждение исходный текст
Ответ на Connection attempt hangs when server is unresponsive  ("Woody Woodring" <george.woodring@iglass.net>)
Список 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 по дате отправления:

Предыдущее
От: Kris Jurka
Дата:
Сообщение: Re: JDBC XA Support and Sample code?
Следующее
От: "Henry B. Hotz"
Дата:
Сообщение: Re: JDBC and GSSAPI/Krb5