Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 9704C638856 for ; Thu, 25 Jun 2009 12:00:14 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 50459-01-6 for ; Thu, 25 Jun 2009 12:00:07 -0300 (ADT) Received: from pgfoundry.org (pgfoundry.org [200.46.204.130]) by mail.postgresql.org (Postfix) with ESMTP id 2996163F64C for ; Thu, 25 Jun 2009 11:19:00 -0300 (ADT) Received: from maia.hub.org (maia-4.hub.org [200.46.204.183]) by pgfoundry.org (Postfix) with ESMTP id E5796107210D for ; Thu, 25 Jun 2009 14:18:57 +0000 (UTC) Received: from pgfoundry.org ([200.46.204.130]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 82963-04 for ; Thu, 25 Jun 2009 11:18:58 -0300 (ADT) Received: by pgfoundry.org (Postfix, from userid 1214) id DCCB3107207C; Thu, 25 Jun 2009 14:18:56 +0000 (UTC) MIME-Version: 1.0 To: pgsql-committers@postgresql.org Subject: pgbouncer - pgbouncer: sbuf.c: Fix connection hang if sbuf_loopcnt is X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ X-PgFoundry: pgbouncer - Content-Type: text/plain; charset=utf-8 Message-Id: <20090625141856.DCCB3107207C@pgfoundry.org> Date: Thu, 25 Jun 2009 14:18:56 +0000 (UTC) From: mkz@pgfoundry.org (User Mkz) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=AWL=-0.000 X-Spam-Level: X-Archive-Number: 200906/328 X-Sequence-Number: 37532 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)