From: wessels <> Date: Wed, 2 Sep 1998 10:00:42 +0000 (+0000) Subject: make sure MAX_MEM_BUF_SZ is at least twice CLIENT_SOCK_SZ X-Git-Tag: SQUID_3_0_PRE1~2771 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c6ac9e5914cda9563d40ae270202cb6d63e36e03;p=thirdparty%2Fsquid.git make sure MAX_MEM_BUF_SZ is at least twice CLIENT_SOCK_SZ --- diff --git a/src/MemBuf.cc b/src/MemBuf.cc index 01b4822570..5e8f386371 100644 --- a/src/MemBuf.cc +++ b/src/MemBuf.cc @@ -1,5 +1,5 @@ /* - * $Id: MemBuf.cc,v 1.19 1998/07/24 00:58:35 wessels Exp $ + * $Id: MemBuf.cc,v 1.20 1998/09/02 04:00:42 wessels Exp $ * * DEBUG: section 59 auto-growing Memory Buffer with printf * AUTHOR: Alex Rousskov @@ -104,7 +104,11 @@ /* default values for buffer sizes, used by memBufDefInit */ #define MEM_BUF_INIT_SIZE (2*1024) +#if CLIENT_SOCK_SZ < 16384 #define MEM_BUF_MAX_SIZE (32*1024) +#else +#define MEM_BUF_MAX_SIZE (CLIENT_SOCK_SZ<<1) +#endif /* local routines */