| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера