]> granicus.if.org Git - pgbouncer/commitdiff
A packet wont change state
authorMarko Kreen <markokr@gmail.com>
Sun, 9 Oct 2011 08:06:48 +0000 (10:06 +0200)
committerMarko Kreen <markokr@gmail.com>
Sun, 9 Oct 2011 08:06:48 +0000 (10:06 +0200)
src/server.c

index 6870de01f23b15bd2c8db3ecd2498698105c6d27..2e3c44d9f24fa5fda77d3d2b990e5c94225c4b0e 100644 (file)
@@ -252,6 +252,12 @@ static bool handle_server_work(PgSocket *server, PktHdr *pkt)
        case 'N':               /* NoticeResponse */
                break;
 
+       /* reply to LISTEN, don't change connection state */
+       case 'A':               /* NotificationResponse */
+               idle_tx = server->idle_tx;
+               ready = server->ready;
+               break;
+
        /* chat packets */
        case '2':               /* BindComplete */
        case '3':               /* CloseComplete */
@@ -263,7 +269,6 @@ static bool handle_server_work(PgSocket *server, PktHdr *pkt)
        case 'G':               /* CopyInResponse */
        case 'H':               /* CopyOutResponse */
        case '1':               /* ParseComplete */
-       case 'A':               /* NotificationResponse */
        case 's':               /* PortalSuspended */
        case 'C':               /* CommandComplete */