diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-06-18 10:25:30 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-06-18 10:25:30 -0400 |
commit | b5d1fded3dfa836ef1f45f6acb74971f75d5caa9 (patch) | |
tree | ce22de55ffa508033064f7e6165590c00028f459 /src/or/config.c | |
parent | 2974c83735d2ac473fcffea0ff3b453e900d5854 (diff) | |
parent | efa342f5fa2c6700ed8273557b7fb39bdc577120 (diff) | |
download | tor-b5d1fded3dfa836ef1f45f6acb74971f75d5caa9.tar.gz tor-b5d1fded3dfa836ef1f45f6acb74971f75d5caa9.zip |
Merge remote-tracking branch 'origin/maint-0.2.4'
Diffstat (limited to 'src/or/config.c')
-rw-r--r-- | src/or/config.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c index f0cf31293b..e3ffbf2086 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -299,6 +299,7 @@ static config_var_t option_vars_[] = { V(MaxAdvertisedBandwidth, MEMUNIT, "1 GB"), V(MaxCircuitDirtiness, INTERVAL, "10 minutes"), V(MaxClientCircuitsPending, UINT, "32"), + V(MaxMemInCellQueues, MEMUNIT, "8 GB"), OBSOLETE("MaxOnionsPending"), V(MaxOnionQueueDelay, MSEC_INTERVAL, "1750 msec"), V(MinMeasuredBWsForAuthToIgnoreAdvertised, INT, "500"), @@ -2648,7 +2649,14 @@ options_validate(or_options_t *old_options, or_options_t *options, REJECT("If EntryNodes is set, UseEntryGuards must be enabled."); } + if (options->MaxMemInCellQueues < (500 << 20)) { + log_warn(LD_CONFIG, "MaxMemInCellQueues must be at least 500 MB for now. " + "Ideally, have it as large as you can afford."); + options->MaxMemInCellQueues = (500 << 20); + } + options->AllowInvalid_ = 0; + if (options->AllowInvalidNodes) { SMARTLIST_FOREACH_BEGIN(options->AllowInvalidNodes, const char *, cp) { if (!strcasecmp(cp, "entry")) |