Re: Detecting 'socket errors' - closing the Connection object

Поиск
Список
Период
Сортировка
От Dmitry Tkach
Тема Re: Detecting 'socket errors' - closing the Connection object
Дата
Msg-id 3F1D4BCE.3040804@openratings.com
обсуждение исходный текст
Ответ на Re: Detecting 'socket errors' - closing the Connection object  (Oliver Jowett <oliver@opencloud.com>)
Список pgsql-jdbc
>
>
>No, it's just saying you can't rely on detecting errors via isClosed(). You
>might see a spontaneous close after an error, but it's not *guaranteed* --
>only close() is guaranteed to cause isClosed() to return true.
>
>The next paragraph, which you trimmed, clarifies that:
>
Yes, that was the *next* paragraph abotu not relying on detecting errors.
This one explicitly said that it is *guaranteed* that isClosed() will
return true *only* after close() has been called.
And the previous one was - if the close() has been called *or* certain
fatal errors occured...

Dima


В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: Re: patch: tiny patch to correct stringbuffer size estimate
Следующее
От: Oliver Jowett
Дата:
Сообщение: Re: the IN clause saga