pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: mkz@pgfoundry.org
To: pgsql-committers@postgresql.org
Subject: pgbouncer - pgbouncer: sbuf.c: Fix connection hang if sbuf_loopcnt is
Date: Thu, 25 Jun 2009 14:18:56 +0000 (UTC)
Message-ID: <20090625141856.DCCB3107207C@pgfoundry.org> (raw)

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)




view thread (2+ messages)  latest in thread

Message-ID: <20090625141856.DCCB3107207C@pgfoundry.org>
Permalink:  ../20090625141856.DCCB3107207C@pgfoundry.org/
Also on:    postgresql.org/message-id/20090625141856.DCCB3107207C@pgfoundry.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: mkz@pgfoundry.org
  Subject: Re: pgbouncer - pgbouncer: sbuf.c: Fix connection hang if sbuf_loopcnt is
  In-Reply-To: <20090625141856.DCCB3107207C@pgfoundry.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox