pgsql: Fix pq_putmessage_noblock() to not block. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Fix pq_putmessage_noblock() to not block.
Date
Msg-id E1bTB24-0005mB-9n@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix pq_putmessage_noblock() to not block.

An evident copy-and-pasteo in commit 2bd9e412f broke the non-blocking
aspect of pq_putmessage_noblock(), causing it to behave identically to
pq_putmessage().  That function is nowadays used only in walsender.c,
so that the net effect was to cause walsenders to hang up waiting for
the receiver in situations where they should not.

Kyotaro Horiguchi

Patch: <20160728.185228.58375982.horiguchi.kyotaro@lab.ntt.co.jp>

Branch
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/c8966a925e139df2176958667b4a19c068d617aa

Modified Files
--------------
src/include/libpq/libpq.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Robert Haas
Date:
Subject: pgsql: Eliminate a few more user-visible "cache lookup failed" errors.
Next
From: Tom Lane
Date:
Subject: pgsql: Fix pq_putmessage_noblock() to not block.