[pgpool-committers: 30] pgpool: Fix pool_process_query() rus into infinite loop reported in thi

Tatsuo Ishii ishii at postgresql.org
Sat Dec 24 10:57:16 JST 2011


Fix pool_process_query() rus into infinite loop reported in this
thread:
http://www.pgpool.net/pipermail/pgpool-general/2011-December/000099.html

In the code path the case when receive buffer of primary is empty and
one of standbys sends spontaneously packet to pgpool (thus their
recieve buffers have data) is not considered. This could happen when,
for example, reloading postgresql.conf. The fix is, read one packet
from standby's receive buffer and discard it.

Branch
------
V3_1_STABLE

Details
-------
http://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=d795a06dbfc06976cb08918117aa63f86e4e30f1

Modified Files
--------------
pool_process_query.c |   84 +++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 83 insertions(+), 1 deletions(-)



More information about the pgpool-committers mailing list