]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Use directory_must_use_begindir to predict we'll surely use begindir
authorNick Mathewson <nickm@torproject.org>
Thu, 2 Jun 2016 14:40:39 +0000 (10:40 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 2 Jun 2016 14:40:39 +0000 (10:40 -0400)
Previously, we used !directory_fetches_from_authorities() to predict
that we would tunnel connections.  But the rules have changed
somewhat over the course of 0.2.8

changes/bug19191 [new file with mode: 0644]
src/or/routerlist.c

diff --git a/changes/bug19191 b/changes/bug19191
new file mode 100644 (file)
index 0000000..8670aaa
--- /dev/null
@@ -0,0 +1,5 @@
+  o Minor bugfixes (downloading):
+    - Predict more correctly whether we'll be downloading over HTTP when we
+      determine the maximum length of a URL. This should avoid a "BUG"
+      warning about the Squid HTTP proxy and its URL limits. Fixes bug 19191;
+      bugfix on ?????.
index a08b5f3190ccc854f69b57746f2809270af80066..82376c073f6572b80b81ece54d289ed778fba225 100644 (file)
@@ -4674,7 +4674,7 @@ max_dl_per_request(const or_options_t *options, int purpose)
   }
   /* If we're going to tunnel our connections, we can ask for a lot more
    * in a request. */
-  if (!directory_fetches_from_authorities(options)) {
+  if (directory_must_use_begindir(options)) {
     max = 500;
   }
   return max;