]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Drop the MaxMemInCellQueues lower limit down to 256 MB.
authorNick Mathewson <nickm@torproject.org>
Wed, 20 Nov 2013 17:12:47 +0000 (12:12 -0500)
committerNick Mathewson <nickm@torproject.org>
Wed, 30 Apr 2014 00:48:22 +0000 (20:48 -0400)
on #9686, gmorehose reports that the 500 MB lower limit is too high
for raspberry pi users.

This is a backport of 647248729fa65f0e51d062e2af8f4e8b38592bf5 to 0.2.4.

Note that in 0.2.4, the option is called MaxMemInCellQueues.

changes/bug9686_024 [new file with mode: 0644]
src/or/config.c

diff --git a/changes/bug9686_024 b/changes/bug9686_024
new file mode 100644 (file)
index 0000000..8705379
--- /dev/null
@@ -0,0 +1,5 @@
+  o Minor features (security):
+    - Decrease the lower limit of MaxMemInCellQueues to 256 MBytes (but leave
+      the default at 8GBytes), to better support Raspberry Pi users. Fixes
+      bug 9686; bugfix on 0.2.4.14-alpha.
+
index ef0294626782cc487cad2e842873551c3c2acb7e..85a5e83d5d037f5a27fb00ab7310672e3c58b849 100644 (file)
@@ -2616,10 +2616,10 @@ 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. "
+  if (options->MaxMemInCellQueues < (256 << 20)) {
+    log_warn(LD_CONFIG, "MaxMemInCellQueues must be at least 256 MB for now. "
              "Ideally, have it as large as you can afford.");
-    options->MaxMemInCellQueues = (500 << 20);
+    options->MaxMemInCellQueues = (256 << 20);
   }
 
   options->AllowInvalid_ = 0;