Fix Pgpool-II hanging when error occurs in streaming replication mode and extended...
authorTatsuo Ishii <ishii@postgresql.org>
Fri, 1 Sep 2017 23:53:19 +0000 (08:53 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Sat, 2 Sep 2017 00:00:08 +0000 (09:00 +0900)
commit6b4216d429c4baef294d7b848eca90d406abc49e
tree56f1f7634e038cec83f58f461264167726d0c305
parentf809426aaa416c6e1dfdda2e3aed3246442f13fb
Fix Pgpool-II hanging when error occurs in streaming replication mode and extended query.

If backend returns ERROR, Pgpool-II reads message from frontend until
a sync message is sent. Previous code assumed next message is sync.
However it is possible that more message coming before the sync
message, it's a low probability though. Fix it to continue reading
messages until the sync message is read.
src/protocol/pool_proto_modules.c