]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
make the max buf size 10 megabytes, not 1 megabyte
authorRoger Dingledine <arma@torproject.org>
Thu, 8 Apr 2004 02:19:35 +0000 (02:19 +0000)
committerRoger Dingledine <arma@torproject.org>
Thu, 8 Apr 2004 02:19:35 +0000 (02:19 +0000)
need to implement flexible buffer sizes soon

svn:r1553

src/or/buffers.c

index fb0e2f10644e3aa0d8541ba60c902c80f31815c9..6b30d13f0f54d05efb87d03f799265a1d377f364 100644 (file)
@@ -17,7 +17,7 @@ struct buf_t {
 /* 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. */