]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
dir auths no longer vote Guard if they're not voting V2Dir
authorRoger Dingledine <arma@torproject.org>
Mon, 2 Apr 2018 04:20:01 +0000 (00:20 -0400)
committerRoger Dingledine <arma@torproject.org>
Mon, 2 Apr 2018 04:20:01 +0000 (00:20 -0400)
Directory authorities no longer vote in favor of the Guard flag
for relays that don't advertise directory support.

Starting in Tor 0.3.0.1-alpha, Tor clients have been avoiding using
such relays in the Guard position, leading to increasingly broken load
balancing for the 5%-or-so of Guards that don't advertise directory
support.

Fixes bug 22310; bugfix on 0.3.0.6.

changes/bug22310 [new file with mode: 0644]
src/or/dirserv.c

diff --git a/changes/bug22310 b/changes/bug22310
new file mode 100644 (file)
index 0000000..c8017da
--- /dev/null
@@ -0,0 +1,8 @@
+  o Major bugfixes (performance, load balancing):
+    - Directory authorities no longer vote in favor of the Guard flag
+      for relays that don't advertise directory support. Starting in Tor
+      0.3.0.1-alpha, Tor clients have been avoiding using such relays in
+      the Guard position, leading to increasingly broken load balancing
+      for the 5%-or-so of Guards that don't advertise directory support.
+      Fixes bug 22310; bugfix on 0.3.0.6.
+
index 0f47a83986d250fcfdf9ec7eb22122e524225c0c..f0333e288f04bf4eeb28e45ab3eeb4f3c7937b41 100644 (file)
@@ -2266,6 +2266,7 @@ set_routerstatus_from_routerinfo(routerstatus_t *rs,
   rs->is_valid = node->is_valid;
 
   if (node->is_fast && node->is_stable &&
+      ri->supports_tunnelled_dir_requests &&
       ((options->AuthDirGuardBWGuarantee &&
         routerbw_kb >= options->AuthDirGuardBWGuarantee/1000) ||
        routerbw_kb >= MIN(guard_bandwidth_including_exits_kb,