]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
make sure MAX_MEM_BUF_SZ is at least twice CLIENT_SOCK_SZ
authorwessels <>
Wed, 2 Sep 1998 10:00:42 +0000 (10:00 +0000)
committerwessels <>
Wed, 2 Sep 1998 10:00:42 +0000 (10:00 +0000)
src/MemBuf.cc

index 01b4822570c676f03574181aca3d2bf6257b3aa0..5e8f38637184b81f6355d8199abd0d510f2e20bf 100644 (file)
@@ -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
 
 /* 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 */