pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daniil Zakhlystov <usernamedt@yandex-team.ru>
To: Konstantin Knizhnik <k.knizhnik@postgrespro.ru>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Cc: Andres Freund <andres@anarazel.de>
Cc: Andrey Borodin <x4mmm@yandex-team.ru>
Subject: Re: libpq compression
Date: Tue, 03 Nov 2020 20:08:55 +0500
Message-ID: <359061604415173@mail.yandex-team.ru> (raw)
References: <c5421f2e-918a-2e74-f91a-a951d49012c4@postgrespro.ru>
	<a112e0a2-6908-5a0d-ac22-012ebb6169b0@postgrespro.ru>
	<74F0A385-6ED4-4EA7-9498-1A8527F16472@yandex-team.ru>
	<a13ce4d1-768c-1449-25f6-0cd645499d93@postgrespro.ru>
	<fa9113c0-db7a-2ed8-111c-a082a2217e4b@postgrespro.ru>
	<22446ba0-058d-624a-a679-edc0215a56c8@postgrespro.ru>
	<20201028192712.xj2qneyb3fvmjm6c@alap3.anarazel.de>
	<3b1d2752-b7b5-db39-84c9-4ff024041fff@postgrespro.ru>
	<20201030210308.54jjmnvhspk6p7cb@alap3.anarazel.de>
	<059E5FF6-96A6-4DCE-83DE-8B20ECBFB843@yandex-team.ru>
	<20201102195059.w6qnplbyargqwbp2@alap3.anarazel.de>

<div>Hi,<br /><br />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.<br /><br />I think we should add a check if there is any buffered rx data before calling pqWait() to avoid such hangs.<br /><br />--<br />Daniil Zakhlystov</div>





view thread (289+ messages)  latest in thread

Message-ID: <359061604415173@mail.yandex-team.ru>
Permalink:  ../359061604415173@mail.yandex-team.ru/
Also on:    postgresql.org/message-id/359061604415173@mail.yandex-team.ru

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: usernamedt@yandex-team.ru, k.knizhnik@postgrespro.ru, pgsql-hackers@lists.postgresql.org, andres@anarazel.de, x4mmm@yandex-team.ru
  Subject: Re: libpq compression
  In-Reply-To: <359061604415173@mail.yandex-team.ru>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox