]> granicus.if.org Git - pgbouncer/commitdiff
Mention max_client_conn in "no more" error message
authorMarko Kreen <markokr@gmail.com>
Thu, 1 Sep 2011 08:43:12 +0000 (11:43 +0300)
committerMarko Kreen <markokr@gmail.com>
Thu, 1 Sep 2011 08:43:12 +0000 (11:43 +0300)
src/client.c

index 305c8f24ced4a3ef2c034abb4e02b9cb6c369572..8d14937b9b61792c4aac1b091bb0e3c456a817bb 100644 (file)
@@ -144,7 +144,7 @@ static bool decide_startup_pool(PgSocket *client, PktHdr *pkt)
           get_active_client_count() counts it */
        if (get_active_client_count() > cf_max_client_conn) {
                if (strcmp(dbname, "pgbouncer") != 0) {
-                       disconnect_client(client, true, "no more connections allowed");
+                       disconnect_client(client, true, "no more connections allowed (max_client_conn)");
                        return false;
                }
        }