[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Use directory_must_use_begindir to predict we'll surely use begindir
commit 6eeedc02d8aee0bf1eda8e592764ec9c5df4add7
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date: Thu Jun 2 10:40:39 2016 -0400
Use directory_must_use_begindir to predict we'll surely use begindir
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 | 5 +++++
src/or/routerlist.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/changes/bug19191 b/changes/bug19191
new file mode 100644
index 0000000..8670aaa
--- /dev/null
+++ b/changes/bug19191
@@ -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 ?????.
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index a08b5f3..82376c0 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -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;
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits