We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8adf56f commit 9103372Copy full SHA for 9103372
src/backend/libpq/auth.c
@@ -8,7 +8,7 @@
8
*
9
10
* IDENTIFICATION
11
- * $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.72 2001/11/05 17:46:25 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.73 2002/02/19 19:49:09 tgl Exp $
12
13
*-------------------------------------------------------------------------
14
*/
@@ -619,9 +619,16 @@ sendAuthRequest(Port *port, AuthRequest areq)
619
pq_sendbytes(&buf, port->cryptSalt, 2);
620
621
pq_endmessage(&buf);
622
- pq_flush();
+
623
+ /*
624
+ * Flush message so client will see it, except for AUTH_REQ_OK,
625
+ * which need not be sent until we are ready for queries.
626
+ */
627
+ if (areq != AUTH_REQ_OK)
628
+ pq_flush();
629
}
630
631
632
#ifdef USE_PAM
633
634
/*
0 commit comments