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

From: mkz(at)pgfoundry(dot)org (User Mkz)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgbouncer - pgbouncer: sbuf.c: Fix connection hang if sbuf_loopcnt is
Date: 2009-06-25 14:18:56
Message-ID: 20090625141856.DCCB3107207C@pgfoundry.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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)

Browse pgsql-committers by date

  From Date Subject
Next Message User Jcasanov 2009-06-25 17:53:35 press - pr: Header 'Contents' was not translated.
Previous Message User Mkz 2009-06-25 14:14:29 pgbouncer - pgbouncer: usage.txt: Time units are microseconds, not