From 0a59832027cc7ff8fe0c62e91b331d359f0d957c Mon Sep 17 00:00:00 2001 From: Marko Kreen Date: Wed, 12 Sep 2007 09:15:36 +0000 Subject: [PATCH] larger SMALL_PKT --- src/sbuf.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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); \ -- 2.39.5