]> granicus.if.org Git - postgresql/commit
Fix pq_putmessage_noblock() to not block.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 29 Jul 2016 16:52:57 +0000 (12:52 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 29 Jul 2016 16:53:02 +0000 (12:53 -0400)
commitc8966a925e139df2176958667b4a19c068d617aa
treeda1855b91c80adcace350822dfccb8e319127831
parent67fb608fe3b086e8218ff6560c11274ab56acf10
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>
src/include/libpq/libpq.h