| От | Konstantin Knizhnik |
|---|---|
| Тема | Re: libpq compression |
| Дата | |
| Msg-id | 64afbf73-7ee2-5eaf-1f07-7c361ff91de7@postgrespro.ru обсуждение |
| Ответ на | Re: libpq compression (Konstantin Knizhnik <k.knizhnik@postgrespro.ru>) |
| Список | pgsql-hackers |
On 03.11.2020 18:08, Daniil Zakhlystov wrote: > Hi, > > Looks like I found an issue: there can be a situation when libpq > frontend hangs after zpq_read(). This may happen when the socket is > not read ready and we can't perform another read because we wait on > pqWait() but we actually have some buffered rx data. > > I think we should add a check if there is any buffered rx data before > calling pqWait() to avoid such hangs. > > -- > Daniil Zakhlystov Hi, thank you very much for detecting the problem and especially providing fix for it. I committed you pull request. Patch based on this PR is attached to this mail . The latest version of libpq sources can be also found in git repository: git@github.com:postgrespro/libpq_compression.git -- Konstantin Knizhnik Postgres Professional: http://www.postgrespro.com The Russian Postgres Company
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера