Browse Source

Don't stop fetching descriptors when FetchUselessDescriptors is
set, even if we stop asking for circuits. Bugfix on 0.1.2.x;
reported by tup and ioerror.


svn:r12430

Roger Dingledine 16 years ago
parent
commit
e12cf29960
2 changed files with 6 additions and 4 deletions
  1. 3 0
      ChangeLog
  2. 3 4
      src/or/routerlist.c

+ 3 - 0
ChangeLog

@@ -97,6 +97,9 @@ Changes in version 0.2.0.10-alpha - 2007-11-07
   o Minor bugfixes:
     - Refuse to start if both ORPort and UseBridges are set. Bugfix
       on 0.2.0.x.
+    - Don't stop fetching descriptors when FetchUselessDescriptors is
+      set, even if we stop asking for circuits. Bugfix on 0.1.2.x;
+      reported by tup and ioerror.
     - Better log message on vote from unknown authority.
     - Don't log "Launching 0 request for 0 router".
 

+ 3 - 4
src/or/routerlist.c

@@ -3753,10 +3753,9 @@ update_consensus_router_descriptor_downloads(time_t now)
   int n_delayed=0, n_have=0, n_would_reject=0, n_wouldnt_use=0,
     n_inprogress=0, n_in_oldrouters=0;
 
-  if (!dirserver) {
-    if (rep_hist_circbuilding_dormant(now))
-      goto done;
-  }
+  if (!dirserver && !options->FetchUselessDescriptors &&
+      rep_hist_circbuilding_dormant(now))
+    goto done;
   if (!consensus)
     goto done;