[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] make the max buf size 10 megabytes, not 1 megabyte
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or
Modified Files:
buffers.c
Log Message:
make the max buf size 10 megabytes, not 1 megabyte
need to implement flexible buffer sizes soon
Index: buffers.c
===================================================================
RCS file: /home/or/cvsroot/src/or/buffers.c,v
retrieving revision 1.77
retrieving revision 1.78
diff -u -d -r1.77 -r1.78
--- buffers.c 7 Apr 2004 20:11:28 -0000 1.77
+++ buffers.c 8 Apr 2004 02:19:35 -0000 1.78
@@ -17,7 +17,7 @@
/* Size, in bytes, for newly allocated buffers. Should be a power of 2. */
#define INITIAL_BUF_SIZE (4*1024)
/* Maximum size, in bytes, for resized buffers. */
-#define MAX_BUF_SIZE (1024*1024)
+#define MAX_BUF_SIZE (1024*1024*10)
/* Size, in bytes, for minimum 'shrink' size for buffers. Buffers may start
* out smaller than this, but they will never autoshrink to less
* than this size. */