~ubuntu-branches/ubuntu/quantal/pgbouncer/quantal-security

« back to all changes in this revision

Viewing changes to src/client.c

  • Committer: Package Import Robot
  • Author(s): Christoph Berg, Peter Eisentraut, Christoph Berg
  • Date: 2012-01-27 17:40:22 UTC
  • mfrom: (14.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20120127174022-zrp5nr3h6lwi5l1e
Tags: 1.5-1
[ Peter Eisentraut ]
* Update watch file to allow .tar.gz in addition to .tgz
* Remove obsolete README.source and repack support in watch file

[ Christoph Berg ]
* New upstream release.
* Use start-stop-daemon for stopping the daemon.  Closes: #641568.
* Use pgbouncer -R to restart in place, thanks Cody Cutrer for the patch.
  Closes: #657204.
* Update URL in README.Debian.  Closes: #655283.

Show diffs side-by-side

added added

removed removed

Lines of Context:
144
144
           get_active_client_count() counts it */
145
145
        if (get_active_client_count() > cf_max_client_conn) {
146
146
                if (strcmp(dbname, "pgbouncer") != 0) {
147
 
                        disconnect_client(client, true, "no more connections allowed");
 
147
                        disconnect_client(client, true, "no more connections allowed (max_client_conn)");
148
148
                        return false;
149
149
                }
150
150
        }
302
302
                }
303
303
        case 'F':               /* FunctionCall */
304
304
 
305
 
        /* request immidiate response from server */
 
305
        /* request immediate response from server */
306
306
        case 'H':               /* Flush */
307
307
        case 'S':               /* Sync */
308
308
 
337
337
                client->pool->stats.client_bytes += pkt->len;
338
338
 
339
339
                /* tag the server as dirty */
340
 
                client->link->ready = 0;
 
340
                client->link->ready = false;
 
341
                client->link->idle_tx = false;
341
342
 
342
343
                /* forward the packet */
343
344
                sbuf_prepare_send(sbuf, &client->link->sbuf, pkt->len);