From 22ba78fa78b32609ee88885a4e7b91a4fa3f35d3 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Sun, 15 Feb 2015 11:56:00 +0100 Subject: [PATCH] *** shrink buffer --- src/socket.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/socket.h b/src/socket.h index 5b538eb..d98a0f9 100644 --- a/src/socket.h +++ b/src/socket.h @@ -97,9 +97,9 @@ typedef struct { uint scanoff; /* offset to continue scanning for newline at, relative to 'offset' */ uint wanted; // try to accumulate that many bytes before calling back; 0 => full line uint readsz; // average size of bulk reads from the underlying socket, times 1.5 - char buf[100000]; + char buf[2000]; #ifdef HAVE_LIBZ - char z_buf[100000]; + char z_buf[2000]; #endif } conn_t;