Re: libpq compression - Mailing list pgsql-hackers

From Konstantin Knizhnik
Subject Re: libpq compression
Date
Msg-id 64afbf73-7ee2-5eaf-1f07-7c361ff91de7@postgrespro.ru
Whole thread Raw
In response to Re: libpq compression  (Konstantin Knizhnik <k.knizhnik@postgrespro.ru>)
List 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


Attachment

pgsql-hackers by date:

Previous
From: Dave Cramer
Date:
Subject: Re: PATCH: Batch/pipelining support for libpq
Next
From: Robert Haas
Date:
Subject: Re: public schema default ACL