mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 14:51:11 +01:00
make the max buf size 10 megabytes, not 1 megabyte
need to implement flexible buffer sizes soon svn:r1553
This commit is contained in:
parent
4d194ef13f
commit
36d7cc8529
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ struct buf_t {
|
||||||
/* Size, in bytes, for newly allocated buffers. Should be a power of 2. */
|
/* Size, in bytes, for newly allocated buffers. Should be a power of 2. */
|
||||||
#define INITIAL_BUF_SIZE (4*1024)
|
#define INITIAL_BUF_SIZE (4*1024)
|
||||||
/* Maximum size, in bytes, for resized buffers. */
|
/* 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
|
/* Size, in bytes, for minimum 'shrink' size for buffers. Buffers may start
|
||||||
* out smaller than this, but they will never autoshrink to less
|
* out smaller than this, but they will never autoshrink to less
|
||||||
* than this size. */
|
* than this size. */
|
||||||
|
|
Loading…
Add table
Reference in a new issue