]> granicus.if.org Git - pgbouncer/commit
sbuf.c: Fix connection hang if sbuf_loopcnt is set.
authorMarko Kreen <markokr@gmail.com>
Thu, 25 Jun 2009 14:18:56 +0000 (14:18 +0000)
committerMarko Kreen <markokr@gmail.com>
Thu, 25 Jun 2009 14:18:56 +0000 (14:18 +0000)
commit6ae977dffb4e32c05e37ff478543c788d956a8a1
tree80189643c8e5d38cacd1518d7c91d2ec178fd2df
parentae00878fd8585633d4110f54fb2ecf03dd83431f
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.
src/sbuf.c