Re: setBinaryStream can abandon connection

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: setBinaryStream can abandon connection
Дата
Msg-id 41732423.1080407@opencloud.com
обсуждение исходный текст
Ответ на Re: setBinaryStream can abandon connection  (Kris Jurka <books@ejurka.com>)
Список pgsql-jdbc
Kris Jurka wrote:

> OK. So we should calculate the total message length using a "long"
> variable to guard against overflow and then check that it doesn't exceed
> MaxAllocSize.  If it does, do not issue the bind at all and throw an
> Exception in a fashion that keeps the connection in working order.

Sounds reasonable.

I was wondering if it was worth teaching PGstream (or a subclass) about
the protocol format. Then it could automatically check for oversize
messages, that we wrote as much data we claimed, and that when reading a
server message we consumed the entire message. I don't know what the
overhead of doing this would be, though.

-O

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

Предыдущее
От: Kris Jurka
Дата:
Сообщение: Re: setBinaryStream can abandon connection
Следующее
От: Simon Moses
Дата:
Сообщение: create view problem