Thread: pgbouncer - pgbouncer: sbuf.c: Fix connection hang if sbuf_loopcnt is

pgbouncer - pgbouncer: sbuf.c: Fix connection hang if sbuf_loopcnt is

From
mkz@pgfoundry.org (User Mkz)
Date:
Log Message:
-----------
sbuf.c: Fix connection hang if sbuf_loopcnt is set.

If query or result length nearby of multiple of (pktlen*sbuf_loopcnt)
[10k by default], it could stay waiting for more data which will not
appear.

Fix it by resyncing and final processing before exiting loop.

Modified Files:
--------------
    pgbouncer/src:
        sbuf.c (r1.35 -> r1.36)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/pgbouncer/pgbouncer/src/sbuf.c?r1=1.35&r2=1.36)