Re: libpq compression

Поиск
Список
Период
Сортировка
От 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 по дате отправления:

Предыдущее
От: Dave Cramer
Дата:
Сообщение: Re: PATCH: Batch/pipelining support for libpq
Следующее
От: Robert Haas
Дата:
Сообщение: Re: public schema default ACL