During COPY IN state (i.e. COPY FROM STDIN), frontend can send Flush
or Sync messages. According to the F/B protocol specification, they
should be ignored but Pgpool-II treated as an invalid message and this
causes COPY hung.
Discussion: https://.com/pgpool/pgpool2/issues/79
Back-through: v4.1
copy_count++;
continue;
}
+ /*
+ * Flush (H) or Sync (S) messages should be ignored while in
+ * the COPY IN mode.
+ */
+ else if (kind == 'H' || kind == 'S')
+ continue;
else
{
if (pool_config->log_client_messages && copy_count != 0)