From: Marko Kreen Date: Sun, 9 Oct 2011 08:06:48 +0000 (+0200) Subject: A packet wont change state X-Git-Tag: pgbouncer_1_5_rc1~49 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aff47d9bd7cfbcbd3ba4ab205d91b35194476c15;p=pgbouncer A packet wont change state --- diff --git a/src/server.c b/src/server.c index 6870de0..2e3c44d 100644 --- a/src/server.c +++ b/src/server.c @@ -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 */