From: Marko Kreen Date: Wed, 12 Sep 2007 09:15:36 +0000 (+0000) Subject: larger SMALL_PKT X-Git-Tag: pgbouncer_1_1~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0a59832027cc7ff8fe0c62e91b331d359f0d957c;p=pgbouncer larger SMALL_PKT --- diff --git a/src/sbuf.c b/src/sbuf.c index 057b5bf..8959592 100644 --- a/src/sbuf.c +++ b/src/sbuf.c @@ -31,10 +31,14 @@ #define SKIP_RECV true /* - * if less that this amount of data is pending, then - * prefer to merge it with next recv() + * If less that this amount of data is pending, then + * prefer to merge it with next recv(). + * + * It needs to be larger than data handler wants + * to see completely. Generally just header, + * but currently also ServerParam pkt. */ -#define SMALL_PKT 16 +#define SMALL_PKT 64 #define AssertSanity(sbuf) do { \ Assert((sbuf)->send_pos >= 0); \