From: Marko Kreen Date: Wed, 18 Apr 2007 13:00:17 +0000 (+0000) Subject: dont flush error and notice packets, as there may be several of them X-Git-Tag: pgbouncer_1_0_7~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=17c68129440d404dfd17673a5efa23ee8fa17d68;p=pgbouncer dont flush error and notice packets, as there may be several of them --- diff --git a/src/server.c b/src/server.c index b9093f9..ec3d76e 100644 --- a/src/server.c +++ b/src/server.c @@ -137,6 +137,9 @@ static bool handle_server_work(PgSocket *server, MBuf *pkt) return false; } + /* above packers need to be sent immidiately */ + flush = 1; + /* * 'E' and 'N' packets currently set ->ready to 0. Correct would * be to leave ->ready as-is, because overal TX state stays same. @@ -150,9 +153,6 @@ static bool handle_server_work(PgSocket *server, MBuf *pkt) case 'E': /* ErrorResponse */ case 'N': /* NoticeResponse */ - /* above packers need to be sent immidiately */ - flush = 1; - /* * chat packets, but server (and thus pooler) * is allowed to buffer them until Sync or Flush